fix: runItemTemplate bug
This commit is contained in:
parent
31133cef20
commit
912b6a088f
|
|
@ -147,7 +147,12 @@ async function runItemTemplate(
|
|||
return "";
|
||||
}
|
||||
|
||||
const targetNoteItem = Zotero.Items.get(targetNoteId || -1);
|
||||
let targetNoteItem: Zotero.Item | undefined = Zotero.Items.get(
|
||||
targetNoteId || -1,
|
||||
);
|
||||
if (!targetNoteItem) {
|
||||
targetNoteItem = undefined;
|
||||
}
|
||||
|
||||
const items = itemIds?.map((id) => Zotero.Items.get(id)) || [];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue