Skip to content

Commit 2cfd75a

Browse files
fix(tool-input): code subblock should be emptyable (#2646)
1 parent c77268c commit 2cfd75a

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function GenericSyncWrapper<T = unknown>({
210210
const [storeValue] = useSubBlockValue(blockId, paramId)
211211

212212
useEffect(() => {
213-
if (storeValue) {
213+
if (storeValue != null) {
214214
const transformedValue = transformer ? transformer(storeValue) : String(storeValue)
215215
if (transformedValue !== value) {
216216
onChange(transformedValue)

0 commit comments

Comments
 (0)