From e082f7bf334e4f793baf4d29db997aa761e20500 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Wed, 11 Mar 2026 08:49:05 +1300 Subject: [PATCH] fix: add defensive access for childNodeIds in SplitGridNode Guard against undefined childNodeIds with optional chaining to prevent a runtime crash when the array hasn't been initialized yet. Co-Authored-By: Claude Opus 4.6 --- src/components/nodes/SplitGridNode.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/nodes/SplitGridNode.tsx b/src/components/nodes/SplitGridNode.tsx index ad790a34..3f7070e3 100644 --- a/src/components/nodes/SplitGridNode.tsx +++ b/src/components/nodes/SplitGridNode.tsx @@ -137,7 +137,7 @@ export function SplitGridNode({ id, data, selected }: NodeProps {nodeData.isConfigured ? (
- {nodeData.childNodeIds.length} generate sets created + {nodeData.childNodeIds?.length ?? 0} generate sets created
) : (