aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-04 22:21:16 -0400
committerGitHub <noreply@github.com>2020-10-04 22:21:16 -0400
commit8c8c27001e441a957da331a29bc1a5de4950bf7e (patch)
tree28fdf18a8cd21eb5987da0065f47d4a578bb093f /ext/bg/js/translator.js
parent54810510fa24c41f5c227d23c4f383052ce63a62 (diff)
Fix incorrect definitions array being used for compatibility merged definitions (#887)
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index d7cb7b31..40fa423b 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -194,12 +194,12 @@ class Translator {
const unusedDefinitions = unsequencedDefinitions.filter((definition) => !usedDefinitions.has(definition));
for (const groupedDefinition of this._groupTerms(unusedDefinitions, enabledDictionaryMap)) {
- const {reasons, score, expression, reading, source, rawSource, sourceTerm, dictionary, furiganaSegments, termTags} = groupedDefinition;
+ const {reasons, score, expression, reading, source, rawSource, sourceTerm, dictionary, furiganaSegments, termTags, definitions: definitions2} = groupedDefinition;
const termDetailsList = [this._createTermDetails(sourceTerm, expression, reading, furiganaSegments, termTags)];
const compatibilityDefinition = this._createMergedTermDefinition(
source,
rawSource,
- definitions,
+ definitions2,
[expression],
[reading],
termDetailsList,