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
This commit is contained in:
parent
19977c69c4
commit
88e10cdace
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue