Fix item pane do not update after closing/reopening
fix: #4344 Fix eslint error in itemPane.js
This commit is contained in:
parent
4f780424e8
commit
d2f5d1f47b
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue