Skip to content

Commit

Permalink
_node can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 authored Jul 19, 2021
1 parent f6aa570 commit 5929fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5929fd8

Please sign in to comment.