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