fix(charword_table): use ref to acquire voice data from alternativeId
This commit is contained in:
@@ -31,9 +31,10 @@ export default class CharwordTable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lookup(operatorName) {
|
lookup(operatorName) {
|
||||||
|
const operatorBlock = this.#charwordTable.operators[this.#getOperatorId(__config.operators[operatorName])]
|
||||||
return {
|
return {
|
||||||
config: this.#charwordTable.config,
|
config: this.#charwordTable.config,
|
||||||
operator: this.#charwordTable.operators[this.#getOperatorId(__config.operators[operatorName])],
|
operator: operatorBlock.voice[DEFAULT_REGION][0].ref ? this.#charwordTable.operators[operatorBlock.alternativeId] : operatorBlock,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user