From cbeb5881e946298e2eabe35ec7fbdb35e5e090f4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 23 Jun 2020 07:33:55 -0400 Subject: [PATCH] Hide annotations from items list --- chrome/content/zotero/xpcom/itemTreeView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index 84348d90c1..2d3ceb6565 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -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());