mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
Migrate Promise#filter() in collectionTree.js
This commit is contained in:
parent
4a1ca8ea96
commit
06dc00af24
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue