Skip to content

Commit b713516

Browse files
committed
addres bugbot comment
1 parent 7c516e6 commit b713516

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/sim/executor/handlers/agent/agent-handler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,15 +319,14 @@ export class AgentBlockHandler implements BlockHandler {
319319
private async fetchCustomToolById(
320320
ctx: ExecutionContext,
321321
customToolId: string
322-
): Promise<{ schema: any; code: string; title: string } | null> {
322+
): Promise<{ schema: any; title: string } | null> {
323323
if (typeof window !== 'undefined') {
324324
try {
325325
const { getCustomTool } = await import('@/hooks/queries/custom-tools')
326326
const tool = getCustomTool(customToolId, ctx.workspaceId)
327327
if (tool) {
328328
return {
329329
schema: tool.schema,
330-
code: tool.code || '',
331330
title: tool.title,
332331
}
333332
}
@@ -376,7 +375,6 @@ export class AgentBlockHandler implements BlockHandler {
376375

377376
return {
378377
schema: tool.schema,
379-
code: tool.code || '',
380378
title: tool.title,
381379
}
382380
} catch (error) {

0 commit comments

Comments
 (0)