From 4d5db960d27d72366824cc57a5db95626631b858 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 3 Apr 2021 15:18:52 -0400 Subject: Fix debug log of Anki note data using old format (#1589) --- ext/js/data/anki-note-builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/data') 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 -- cgit v1.2.3