Skip to content

Loop over the hash, not the keys, in `_ensureDefaultFolders`

Adam Williamson requested to merge adamw/gnome-shell:fix-default-folders into main

In testing on Fedora, gnome-shell seems to crash here:

JS ERROR: TypeError: DEFAULT_FOLDERS[folder] is undefined

I am no JavaScript expert, but from docs on JS "for in" loops and some experimenting with an interactive example thing, it looks like we need to iterate over the DEFAULT_FOLDERS hash itself here, not the keys array we got from it earlier.

Signed-off-by: Adam Williamson awilliam@redhat.com

Merge request reports