diff --git a/chrome/content/zotero/elements/librariesCollectionsBox.js b/chrome/content/zotero/elements/librariesCollectionsBox.js index 15eebeb8b2..5e21f9df1c 100644 --- a/chrome/content/zotero/elements/librariesCollectionsBox.js +++ b/chrome/content/zotero/elements/librariesCollectionsBox.js @@ -157,7 +157,12 @@ import { getCSSIcon } from 'components/icons'; if (!disableClicky) { box.addEventListener('click', async () => { await ZoteroPane.collectionsView.selectByID(obj.treeViewID); - await ZoteroPane.selectItem(contextItem.id); + // Do not try to view deleted items in a collection. + // They do not appear outside of trash, and selecting a deleted item + // will re-open trash in collectionTree. + if (!contextItem.deleted) { + await ZoteroPane.selectItem(contextItem.id); + } }); }