Fix uncaught errors on item.save() coming from attachmentBox

This commit is contained in:
windingwind 2024-01-12 23:33:25 +08:00 committed by Dan Stillman
parent 034dd40eea
commit 607f9814a0
2 changed files with 2 additions and 3 deletions

View file

@ -185,8 +185,8 @@
if (!(val instanceof Zotero.Item)) {
throw new Error("'item' must be a Zotero.Item");
}
this._item = val;
if (this._item.isAttachment()) {
if (val.isAttachment()) {
this._item = val;
this.hidden = false;
this.render();
}

View file

@ -180,7 +180,6 @@
else {
this._attachments.insertBefore(row, this._attachments.children[index]);
}
console.log("attch box addRow", attachment, open, row);
return row;
}