From 8c8c27001e441a957da331a29bc1a5de4950bf7e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 4 Oct 2020 22:21:16 -0400 Subject: Fix incorrect definitions array being used for compatibility merged definitions (#887) --- ext/bg/js/translator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') 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, -- cgit v1.2.3