Migrate Promise#filter() in collectionTree.js

This commit is contained in:
Abe Jellinek 2025-07-01 11:04:42 -04:00 • committed by Dan Stillman
parent 4a1ca8ea96
commit 06dc00af24

View file

@ -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;