Skip to content

Commit

Permalink
TLK-1725 - Slack tool
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneLightsOn committed Oct 24, 2024
1 parent c3fa93d commit 50bb431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const ToolsStep: React.FC<Props> = ({ 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}
/>
)
Expand Down Expand Up @@ -90,7 +90,7 @@ const ToolRow: React.FC<{
kind="outline"
theme="mushroom"
label="Authenticate"
onClick={() => handleAuthButtonClick(name)}
onClick={() => handleAuthButtonClick ? handleAuthButtonClick(name) : ''}
/>)}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const AgentSettingsForm: React.FC<Props> = (props) => {
}
};

const handleAuthButtonClick = (tool_name) => {
const handleAuthButtonClick = (tool_name: string) => {
const tool = listToolsData?.find((t) => t.name === tool_name);
if (!tool?.is_available) {
return;
Expand Down

0 comments on commit 50bb431

Please sign in to comment.