Skip to content

Commit

Permalink
Fix updating non-fragment props
Browse files Browse the repository at this point in the history
  • Loading branch information
igor10k committed Dec 4, 2024
1 parent 4c52511 commit a9c34b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/source/legacy/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ export function adaptToLegacyRemoteChannel(
tree[id]?.length ?? 0,
] satisfies RemoteMutationRecord);
} else {
const index = tree[id].findIndex(({slot}: any) => slot === key);
const index =
tree[id]?.findIndex(({slot}: any) => slot === key) ?? -1;
if (index !== -1) {
records.push([
MUTATION_TYPE_REMOVE_CHILD,
Expand Down

0 comments on commit a9c34b5

Please sign in to comment.