Migrate Promise#filter() in collectionTree.js

This commit is contained in:
Abe Jellinek 2025-07-01 11:04:42 -04:00
parent 4ee59735cf
commit 0d45a8b4db

View file

@ -2971,7 +2971,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;