diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index 72813e68c3..af31e418dd 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -116,7 +116,10 @@ Zotero.ItemTreeView.prototype.setTree = async function (treebox) { return; } - await this.refresh(true); + // Don't expand to show search matches in My Publications + var skipExpandMatchParents = this.collectionTreeRow.isPublications(); + + await this.refresh(skipExpandMatchParents); if (!this._treebox.treeBody) { return; }