fix(common/models): missed detail from prior commit

This commit is contained in:
jahorton 2020-10-07 09:57:02 +07:00
parent f29c4673dd
commit d516484521

View file

@ -289,6 +289,7 @@ class ModelCompositor {
// If this is a suggestion after wordbreak input, make sure we preserve the wordbreak transform!
if(prefixTransform) {
let mergedTransform = models.buildMergedTransform(prefixTransform, suggestion.transform);
mergedTransform.id = suggestion.transformId;
// Temporarily and locally drops 'readonly' semantics so that we can reassign the transform.
// See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#improved-control-over-mapped-type-modifiers