Fix debug log of Anki note data using old format (#1589)

This commit is contained in:
toasted-nutbread 2021-04-03 15:18:52 -04:00 committed by GitHub
parent 0e26d9a667
commit 4d5db960d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,8 +94,8 @@ class AnkiNoteBuilder {
injectedMedia=null,
marker=null
}) {
const data = this._createData(definition, mode, context, resultOutputMode, glossaryLayoutMode, compactTags, injectedMedia);
return await this._templateRenderer.getModifiedData({data, marker}, 'ankiNote');
const commonData = this._createData(definition, mode, context, resultOutputMode, glossaryLayoutMode, compactTags, injectedMedia);
return await this._templateRenderer.getModifiedData({marker, commonData}, 'ankiNote');
}
// Private