From 50bb431d16c3eca02347ee18a17aa8ded3b0442e Mon Sep 17 00:00:00 2001 From: EugeneP Date: Thu, 24 Oct 2024 20:54:03 +0200 Subject: [PATCH] TLK-1725 - Slack tool --- .../src/components/AgentSettingsForm/ToolsStep.tsx | 4 ++-- .../assistants_web/src/components/AgentSettingsForm/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/assistants_web/src/components/AgentSettingsForm/ToolsStep.tsx b/src/interfaces/assistants_web/src/components/AgentSettingsForm/ToolsStep.tsx index a3fb38a40e..121a1efed2 100644 --- a/src/interfaces/assistants_web/src/components/AgentSettingsForm/ToolsStep.tsx +++ b/src/interfaces/assistants_web/src/components/AgentSettingsForm/ToolsStep.tsx @@ -39,7 +39,7 @@ export const ToolsStep: React.FC = ({ tools, activeTools, setActiveTools, checked={!!activeTools?.includes(name)} handleSwitch={(checked: boolean) => handleUpdateActiveTools(checked, name)} isAuthRequired={is_auth_required} - authUrl={auth_url} + authUrl={auth_url?.toString()} handleAuthButtonClick={handleAuthButtonClick} /> ) @@ -90,7 +90,7 @@ const ToolRow: React.FC<{ kind="outline" theme="mushroom" label="Authenticate" - onClick={() => handleAuthButtonClick(name)} + onClick={() => handleAuthButtonClick ? handleAuthButtonClick(name) : ''} />)} ); diff --git a/src/interfaces/assistants_web/src/components/AgentSettingsForm/index.tsx b/src/interfaces/assistants_web/src/components/AgentSettingsForm/index.tsx index 243a1fe370..d975f74939 100644 --- a/src/interfaces/assistants_web/src/components/AgentSettingsForm/index.tsx +++ b/src/interfaces/assistants_web/src/components/AgentSettingsForm/index.tsx @@ -177,7 +177,7 @@ export const AgentSettingsForm: React.FC = (props) => { } }; - const handleAuthButtonClick = (tool_name) => { + const handleAuthButtonClick = (tool_name: string) => { const tool = listToolsData?.find((t) => t.name === tool_name); if (!tool?.is_available) { return;