From beebcae0a15cdb60fcc71816105d0dfbf694ba32 Mon Sep 17 00:00:00 2001 From: HyaCinth <88471803+HyaCiovo@users.noreply.github.com> Date: Mon, 28 Jul 2025 15:49:19 +0800 Subject: [PATCH] fix(web): Fix issues with workflow as tool configuration button (#23039) (#23050) --- web/app/components/base/textarea/index.tsx | 2 +- web/app/components/tools/workflow-tool/configure-button.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/base/textarea/index.tsx b/web/app/components/base/textarea/index.tsx index 1e274515f8..43cc33d62e 100644 --- a/web/app/components/base/textarea/index.tsx +++ b/web/app/components/base/textarea/index.tsx @@ -39,7 +39,7 @@ const Textarea = React.forwardRef( destructive && 'border-components-input-border-destructive bg-components-input-bg-destructive text-components-input-text-filled hover:border-components-input-border-destructive hover:bg-components-input-bg-destructive focus:border-components-input-border-destructive focus:bg-components-input-bg-destructive', className, )} - value={value} + value={value ?? ''} onChange={onChange} disabled={disabled} {...props} diff --git a/web/app/components/tools/workflow-tool/configure-button.tsx b/web/app/components/tools/workflow-tool/configure-button.tsx index 0c72f82f39..bf418750b1 100644 --- a/web/app/components/tools/workflow-tool/configure-button.tsx +++ b/web/app/components/tools/workflow-tool/configure-button.tsx @@ -179,8 +179,8 @@ const WorkflowToolConfigureButton = ({ {(!published || !isLoading) && (
{isCurrentWorkspaceManager ? (