Fix item pane do not update after closing/reopening

fix: #4344
Fix eslint error in itemPane.js
This commit is contained in:
windingwind 2024-07-08 19:20:31 +08:00
parent 4f780424e8
commit d2f5d1f47b

View file

@ -160,7 +160,7 @@
this._itemDetails.item = item; this._itemDetails.item = item;
this._itemDetails.collectionTreeRow = this.collectionTreeRow; this._itemDetails.collectionTreeRow = this.collectionTreeRow;
if (this.hasAttribute("collapsed")) { if (this.getAttribute("collapsed") == "true") {
return true; return true;
} }
@ -227,7 +227,7 @@
let key; let key;
// In the trash, we have to check the object type // In the trash, we have to check the object type
if (this.collectionTreeRow.isTrash()) { if (this.collectionTreeRow.isTrash()) {
let obj = this.data[0]; let _obj = this.data[0];
if (this.data.every(x => x instanceof Zotero.Collection)) { if (this.data.every(x => x instanceof Zotero.Collection)) {
key = 'item-pane-message-collections-selected'; key = 'item-pane-message-collections-selected';
} }