diff --git a/src/components/WorkflowCanvas.tsx b/src/components/WorkflowCanvas.tsx index 209485de..ff3e53c3 100644 --- a/src/components/WorkflowCanvas.tsx +++ b/src/components/WorkflowCanvas.tsx @@ -2107,6 +2107,23 @@ export function WorkflowCanvas() { ) : undefined; + // Optional toggle for input nodes + const isInputNode = node.type === "imageInput" || node.type === "audioInput" || node.type === "prompt"; + const isOptional = !!(node.data as any)?.isOptional; + const optionalToggle = isInputNode ? ( + + ) : undefined; + return (