From 53ebeb2484c85a517eaccef8ca5489e551498db2 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Fri, 27 Feb 2026 23:57:33 +1300 Subject: [PATCH] fix: remove invalid null fields from conditionalSwitch node defaults The customTitle and comment fields are typed as string | undefined in ConditionalSwitchNodeData. The null values were masked by an 'as' cast but caused strict type errors. These fields are optional and don't need explicit defaults. Co-Authored-By: Claude Opus 4.6 --- src/store/utils/nodeDefaults.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/store/utils/nodeDefaults.ts b/src/store/utils/nodeDefaults.ts index 6757484b..d22f67d3 100644 --- a/src/store/utils/nodeDefaults.ts +++ b/src/store/utils/nodeDefaults.ts @@ -305,8 +305,6 @@ export const createDefaultNodeData = (type: NodeType): WorkflowNodeData => { } as SwitchNodeData; case "conditionalSwitch": return { - customTitle: null, - comment: null, incomingText: null, rules: [ {