From 0e9a76b28e56ddab3949685da31519e3d2a9c990 Mon Sep 17 00:00:00 2001 From: weige <772752726@qq.com> Date: Fri, 29 May 2026 18:35:53 +0800 Subject: [PATCH] fix --- src/components/WorkflowCanvas.tsx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/components/WorkflowCanvas.tsx b/src/components/WorkflowCanvas.tsx index 757b2e96..5a5cd896 100644 --- a/src/components/WorkflowCanvas.tsx +++ b/src/components/WorkflowCanvas.tsx @@ -2776,23 +2776,6 @@ export function WorkflowCanvas() { ) : undefined; - // Optional toggle for input nodes - const isInputNode = node.type === "audioInput"; - const isOptional = !!(node.data as any)?.isOptional; - const optionalToggle = isInputNode ? ( - - ) : undefined; - // Fallback shield button for generation nodes const isGenerationNode = node.type === "nanoBanana" || @@ -2871,7 +2854,6 @@ export function WorkflowCanvas() { {fallbackButton} ) : undefined} - headerButtons={optionalToggle} onCustomTitleChange={handleCustomTitleChange} onCommentChange={handleCommentChange} onRunNode={handleRunNode}