From 1e3beec39f8db88c80c8242d49ebfa24aac0e1d1 Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Tue, 4 Feb 2025 15:38:16 -0800 Subject: [PATCH] Added password for api key in tool input --- .../components/sub-block/components/tool-input.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input.tsx b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input.tsx index bf6d83b54c..72bdd8c685 100644 --- a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input.tsx +++ b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input.tsx @@ -235,7 +235,10 @@ export function ToolInput({ blockId, subBlockId }: ToolInputProps) { blockId={blockId} subBlockId={`${subBlockId}-param`} placeholder={param.description} - password={param.type === 'password'} + password={ + param.id.toLowerCase().replace(/\s+/g, '') === + 'apikey' + } isConnecting={false} config={{ id: `${subBlockId}-param`,