Allow loadChildItems() to be called on note/attachment items
Otherwise loadAllData() doesn't work
This commit is contained in:
parent
fbef911cb7
commit
40e86147a4
1 changed files with 1 additions and 2 deletions
|
@ -4471,9 +4471,8 @@ Zotero.Item.prototype.loadChildItems = Zotero.Promise.coroutine(function* (reloa
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (this.isNote() || this.isAttachment()) {
|
if (this.isNote() || this.isAttachment()) {
|
||||||
throw new Error("Can only load child items for regular item");
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attachments
|
// Attachments
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue