From 6dee48f0c0731631bab5c9be6c46b7b9a0c8d884 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Tue, 30 Dec 2025 17:38:34 -0800 Subject: [PATCH] fix(tool-input): code subblock should be emptyable --- .../components/sub-block/components/tool-input/tool-input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx index ea7a56f914..cb1bfa38f5 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx @@ -210,7 +210,7 @@ function GenericSyncWrapper({ const [storeValue] = useSubBlockValue(blockId, paramId) useEffect(() => { - if (storeValue) { + if (storeValue != null) { const transformedValue = transformer ? transformer(storeValue) : String(storeValue) if (transformedValue !== value) { onChange(transformedValue)