fix: avoid overwriting id when diffing children

this can interact with the named IDs, and cause state mismatches, and doesn't need to be done, because the ID will be updated by the diff method if there is a Tag match anyways.
This commit is contained in:
Ashley Wulber 2024-11-04 22:30:38 -05:00
parent 3992a3d4ac
commit 4238d0ef2b
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -334,9 +334,6 @@ impl Tree {
)
{
let c = &mut id_list[child_state_i];
if len_changed {
c.id.clone_from(new_id);
}
child_state_i += 1;
c
} else {