From 06dc00af248cfe209a74ef1a3dd74ca6d072abfb Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 1 Jul 2025 11:04:42 -0400 Subject: [PATCH] Migrate Promise#filter() in collectionTree.js --- chrome/content/zotero/collectionTree.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;