From 88e10cdacec430afa45354a1ed6bec2bb003c6c3 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Thu, 24 Oct 2024 20:46:55 -0700 Subject: [PATCH] include linked items in lib/collectionBox render (#4786) So that they do not disappear after Libraries and Collections section is collapsed and expanded. Fixes: #4784 --- chrome/content/zotero/elements/librariesCollectionsBox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/librariesCollectionsBox.js b/chrome/content/zotero/elements/librariesCollectionsBox.js index 39d215343f..ad797c858e 100644 --- a/chrome/content/zotero/elements/librariesCollectionsBox.js +++ b/chrome/content/zotero/elements/librariesCollectionsBox.js @@ -235,8 +235,7 @@ import { getCSSIcon } from 'components/icons'; if (this._isAlreadyRendered()) return; this._body.replaceChildren(); - - for (let item of [this._item]) { + for (let item of [this._item, ...this._linkedItems]) { this._addObject(Zotero.Libraries.get(item.libraryID), item); for (let collection of Zotero.Collections.get(item.getCollections())) { this._addObject(collection, item);