mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Fix uncaught errors on item.save() coming from attachmentBox
This commit is contained in:
parent
034dd40eea
commit
607f9814a0
2 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -180,7 +180,6 @@
|
|||
else {
|
||||
this._attachments.insertBefore(row, this._attachments.children[index]);
|
||||
}
|
||||
console.log("attch box addRow", attachment, open, row);
|
||||
return row;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue