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