aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-15 20:50:18 -0400
committerGitHub <noreply@github.com>2021-03-15 20:50:18 -0400
commit9ad9961ca81d2ee41c26d2c2bc2a399abad1bac5 (patch)
treef367c4addf6e8ae1e7b9b30248536547d2a28463 /ext
parent9addd3f6d1c727960ce93192abbf50ccecd4b565 (diff)
Fix error for kanji note data (#1530)
Diffstat (limited to 'ext')
-rw-r--r--ext/js/data/anki-note-data.js1
1 files changed, 1 insertions, 0 deletions
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);