Hide annotations from items list

This commit is contained in:
Dan Stillman 2020-06-23 07:33:55 -04:00
parent 1c366de546
commit cbeb5881e9

View file

@ -328,6 +328,8 @@ Zotero.ItemTreeView.prototype.refresh = Zotero.serial(Zotero.Promise.coroutine(f
Zotero.CollectionTreeCache.clear();
// Get the full set of items we want to show
let newSearchItems = yield this.collectionTreeRow.getItems();
// TEMP: Hide annotations
newSearchItems = newSearchItems.filter(item => !item.isAnnotation());
// Remove notes and attachments if necessary
if (this.regularOnly) {
newSearchItems = newSearchItems.filter(item => item.isRegularItem());