aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/js/data/anki-note-builder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/data/anki-note-builder.js b/ext/js/data/anki-note-builder.js
index b84b2eda..13e83aaf 100644
--- a/ext/js/data/anki-note-builder.js
+++ b/ext/js/data/anki-note-builder.js
@@ -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