Skip to content

Commit eb8b17e

Browse files
author
Theodore Li
committed
Avoid any transformation on custom tool outputs
1 parent 2741413 commit eb8b17e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/sim/tools/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ export async function executeTool(
829829
}
830830

831831
const strippedOutput = isCustomTool(normalizedToolId)
832-
? finalResult.output || {}
833-
: stripInternalFields(finalResult.output || {})
832+
? finalResult.output
833+
: stripInternalFields(finalResult.output ?? {})
834834

835835
return {
836836
...finalResult,
@@ -886,8 +886,8 @@ export async function executeTool(
886886
}
887887

888888
const strippedOutput = isCustomTool(normalizedToolId)
889-
? finalResult.output || {}
890-
: stripInternalFields(finalResult.output || {})
889+
? finalResult.output
890+
: stripInternalFields(finalResult.output ?? {})
891891

892892
return {
893893
...finalResult,

0 commit comments

Comments
 (0)