diff --git a/src/store/workflowStore.ts b/src/store/workflowStore.ts index 73c7e4bb..7ff35abf 100644 --- a/src/store/workflowStore.ts +++ b/src/store/workflowStore.ts @@ -536,10 +536,13 @@ const workflowStoreImpl: StateCreator = (set, get) => ({ ) as WorkflowNode[], hasUnsavedChanges: true, })); - // Recompute dimming if this is a switch node and switches data changed + // Recompute dimming if this is a switch or conditionalSwitch node and their control data changed if (node?.type === "switch" && "switches" in data) { get().recomputeDimmedNodes(); } + if (node?.type === "conditionalSwitch" && "rules" in data) { + get().recomputeDimmedNodes(); + } }, removeNode: (nodeId: string) => {