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);
|
annotation.uri = Zotero.URI.getItemURI(attachmentItem);
|
||||||
|
|
||||||
// Citation
|
// Citation
|
||||||
let parentItem = attachmentItem.parentID && await Zotero.Items.getAsync(attachmentItem.parentID) || attachmentItem;
|
let parentItem = attachmentItem.parentID && await Zotero.Items.getAsync(attachmentItem.parentID);
|
||||||
if (parentItem) {
|
if (parentItem) {
|
||||||
let citationItem = {
|
let citationItem = {
|
||||||
uris: [Zotero.URI.getItemURI(parentItem)],
|
uris: [Zotero.URI.getItemURI(parentItem)],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue