From d2f5d1f47bbf9d6cbd68c065dedb176660c4f7e4 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:20:31 +0800 Subject: [PATCH] Fix item pane do not update after closing/reopening fix: #4344 Fix eslint error in itemPane.js --- chrome/content/zotero/elements/itemPane.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/itemPane.js b/chrome/content/zotero/elements/itemPane.js index ef9ccea6fe..b418ec7c73 100644 --- a/chrome/content/zotero/elements/itemPane.js +++ b/chrome/content/zotero/elements/itemPane.js @@ -160,7 +160,7 @@ this._itemDetails.item = item; this._itemDetails.collectionTreeRow = this.collectionTreeRow; - if (this.hasAttribute("collapsed")) { + if (this.getAttribute("collapsed") == "true") { return true; } @@ -227,7 +227,7 @@ let key; // In the trash, we have to check the object type if (this.collectionTreeRow.isTrash()) { - let obj = this.data[0]; + let _obj = this.data[0]; if (this.data.every(x => x instanceof Zotero.Collection)) { key = 'item-pane-message-collections-selected'; }