Fix missing itemData
when creating a note from annotations
This commit is contained in:
parent
3de7b6c5ec
commit
1eb888d026
1 changed files with 5 additions and 1 deletions
|
@ -271,7 +271,11 @@ class EditorInstance {
|
|||
citationItems: [citationItem],
|
||||
properties: {}
|
||||
};
|
||||
let formatted = this._formatCitation(citation);
|
||||
|
||||
let citationWithData = JSON.parse(JSON.stringify(citation));
|
||||
citationWithData.citationItems[0].itemData = itemData;
|
||||
let formatted = this._formatCitation(citationWithData);
|
||||
|
||||
citationHTML = `<span class="citation" data-citation="${encodeURIComponent(JSON.stringify(citation))}">(${formatted})</span>`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue