diff --git a/chrome/content/zotero/collectionTree.jsx b/chrome/content/zotero/collectionTree.jsx index a97e546ce4..586c8ac214 100644 --- a/chrome/content/zotero/collectionTree.jsx +++ b/chrome/content/zotero/collectionTree.jsx @@ -2973,7 +2973,7 @@ var CollectionTree = class CollectionTree extends LibraryTree { var collections = treeRow.getChildren(); if (isLibrary) { - var savedSearches = await Zotero.Searches.getAll(libraryID).filter(s => !s.deleted); + var savedSearches = (await Zotero.Searches.getAll(libraryID)).filter(s => !s.deleted); // Virtual collections default to showing if not explicitly hidden var showDuplicates = this.props.hideSources.indexOf('duplicates') == -1 && this._virtualCollectionLibraries.duplicates[libraryID] !== false;