Skip to content

Commit e447235

Browse files
committed
Fix empty children
1 parent ee12c20 commit e447235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export function diff(
312312
}
313313
} else {
314314
newVNode._dom = oldVNode._dom;
315-
newVNode._children = oldVNode._children;
315+
newVNode._children = oldVNode._children || [];
316316
}
317317
options._catchError(e, newVNode, oldVNode);
318318
}

0 commit comments

Comments
 (0)