From a9c34b58d7762d3a010456810fbee19c98dc4d6e Mon Sep 17 00:00:00 2001 From: Igor Kozlov Date: Wed, 4 Dec 2024 15:49:32 -0500 Subject: [PATCH] Fix updating non-fragment props --- packages/core/source/legacy/host.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/source/legacy/host.ts b/packages/core/source/legacy/host.ts index 4595b4bd..9b9d42f2 100644 --- a/packages/core/source/legacy/host.ts +++ b/packages/core/source/legacy/host.ts @@ -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,