From 9ad9961ca81d2ee41c26d2c2bc2a399abad1bac5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 15 Mar 2021 20:50:18 -0400 Subject: Fix error for kanji note data (#1530) --- ext/js/data/anki-note-data.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/js/data/anki-note-data.js b/ext/js/data/anki-note-data.js index a8a82a79..f7f4c641 100644 --- a/ext/js/data/anki-note-data.js +++ b/ext/js/data/anki-note-data.js @@ -243,6 +243,7 @@ class AnkiNoteData { if (definition2.type === 'term') { this._defineFuriganaSegments(definition2); } + if (definition2.type === 'kanji') { continue; } for (const expression of definition2.expressions) { this._defineFuriganaSegments(expression); this._defineTermFrequency(expression); -- cgit v1.2.3