From 5929fd88b29d92a04b44cdac6c1d17db20114e4f Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Mon, 19 Jul 2021 12:17:28 +0200 Subject: [PATCH] `_node` can be null --- src/record/mutation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(