From 2cfd75a42271918bff4773646b3be43dd2ab6826 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Tue, 30 Dec 2025 17:45:56 -0800 Subject: [PATCH] fix(tool-input): code subblock should be emptyable (#2646) --- .../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 ea7a56f91..cb1bfa38f 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)