Fix incorrect definitions array being used for compatibility merged definitions (#887)
This commit is contained in:
parent
54810510fa
commit
8c8c27001e
@ -194,12 +194,12 @@ class Translator {
|
|||||||
|
|
||||||
const unusedDefinitions = unsequencedDefinitions.filter((definition) => !usedDefinitions.has(definition));
|
const unusedDefinitions = unsequencedDefinitions.filter((definition) => !usedDefinitions.has(definition));
|
||||||
for (const groupedDefinition of this._groupTerms(unusedDefinitions, enabledDictionaryMap)) {
|
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 termDetailsList = [this._createTermDetails(sourceTerm, expression, reading, furiganaSegments, termTags)];
|
||||||
const compatibilityDefinition = this._createMergedTermDefinition(
|
const compatibilityDefinition = this._createMergedTermDefinition(
|
||||||
source,
|
source,
|
||||||
rawSource,
|
rawSource,
|
||||||
definitions,
|
definitions2,
|
||||||
[expression],
|
[expression],
|
||||||
[reading],
|
[reading],
|
||||||
termDetailsList,
|
termDetailsList,
|
||||||
|
Loading…
Reference in New Issue
Block a user