diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-26 19:31:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 19:31:19 -0400 |
commit | 482dd8c8d8339d29c9e7a202cbf4c54bf7cf291d (patch) | |
tree | dba1d8d79f01ff8cb7a14b80269ec301dc4e72b4 /ext/js/display/display-audio.js | |
parent | a14caaeab92027c57545f9db40c29e6afac14993 (diff) |
Display fixes (#1560)
* Fix _getDefinitionDetailsForNote
* Fix _getExpressionAndReading
Diffstat (limited to 'ext/js/display/display-audio.js')
-rw-r--r-- | ext/js/display/display-audio.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js index bb88c89e..03966390 100644 --- a/ext/js/display/display-audio.js +++ b/ext/js/display/display-audio.js @@ -405,11 +405,11 @@ class DisplayAudio { const definition = definitions[definitionIndex]; if (definition.type === 'kanji') { return null; } - const {expressions} = definition; - if (expressionIndex < 0 || expressionIndex >= expressions.length) { return null; } + const {headwords} = definition; + if (expressionIndex < 0 || expressionIndex >= headwords.length) { return null; } - const {expression, reading} = expressions[expressionIndex]; - return {expression, reading}; + const {term, reading} = headwords[expressionIndex]; + return {expression: term, reading}; } _getExpressionReadingKey(expression, reading) { |