PushRoot before adding children

This commit is contained in:
Evan Almloff committed 2022-03-26 13:35:23 -05:00
1 parent aec5cd9dfa
commit 43b5a230f0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -423,8 +423,8 @@ impl<'b> DiffState<'b> {
match (old.children.len(), new.children.len()) {
(0, 0) => {}
(0, _) => {
let created = self.create_children(new.children);
self.mutations.push_root(root);
let created = self.create_children(new.children);
self.mutations.append_children(created as u32);
}
(_, _) => self.diff_children(old.children, new.children),