Skip to content

Commit

Permalink
Leverage .some
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Sep 12, 2024
1 parent 678aea0 commit 62e6fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function diff(

newVNode._dom = oldVNode._dom;
newVNode._children = oldVNode._children;
newVNode._children.forEach(vnode => {
newVNode._children.some(vnode => {
if (vnode) vnode._parent = newVNode;
});

Expand Down

0 comments on commit 62e6fce

Please sign in to comment.