Skip to content

Commit 0490020

Browse files
committed
fix(custom-tools): remove unsafe title fallback in getCustomTool
1 parent 103b31a commit 0490020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/hooks/queries/custom-tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function getCustomTool(
118118
workspaceId?: string
119119
): CustomToolDefinition | undefined {
120120
const tools = getCustomTools(workspaceId)
121-
return tools.find((tool) => tool.id === toolId) || tools.find((tool) => tool.title === toolId)
121+
return tools.find((tool) => tool.id === toolId)
122122
}
123123

124124
/**

0 commit comments

Comments
 (0)