Do not insert citation for parentless PDF
This commit is contained in:
parent
8d87eeae35
commit
7fa68690dd
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ class EditorInstance {
|
|||
annotation.uri = Zotero.URI.getItemURI(attachmentItem);
|
||||
|
||||
// Citation
|
||||
let parentItem = attachmentItem.parentID && await Zotero.Items.getAsync(attachmentItem.parentID) || attachmentItem;
|
||||
let parentItem = attachmentItem.parentID && await Zotero.Items.getAsync(attachmentItem.parentID);
|
||||
if (parentItem) {
|
||||
let citationItem = {
|
||||
uris: [Zotero.URI.getItemURI(parentItem)],
|
||||
|
|
Loading…
Reference in a new issue