diff --git a/src/record/mutation.ts b/src/record/mutation.ts index fd4ac71060..ac24ebea5a 100644 --- a/src/record/mutation.ts +++ b/src/record/mutation.ts @@ -361,7 +361,7 @@ export default class MutationBuffer { } if (!node) { for (let index = addList.length - 1; index >= 0; index--) { - const _node = addList.get(index)!; + const _node = addList.get(index); // ensure _node is defined before attempting to find value if (_node) { const parentId = this.mirror.getId(