Skip to content

Commit 6149489

Browse files
Update apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 9ede001 commit 6149489

File tree

1 file changed

+4
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components

1 file changed

+4
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ export function Code({
106106

107107
useEffect(() => {
108108
if (onValidationChange && subBlockId === 'responseFormat') {
109-
onValidationChange(isValidJson)
109+
const timeoutId = setTimeout(() => {
110+
onValidationChange(isValidJson)
111+
}, 150) // Match debounce time from setStoreValue
112+
return () => clearTimeout(timeoutId)
110113
}
111114
}, [isValidJson, onValidationChange, subBlockId])
112115

0 commit comments

Comments
 (0)