Skip to content

Commit ecd4237

Browse files
committed
Fix handlecancelcheckpoint
1 parent 0e55455 commit ecd4237

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/hooks

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/hooks/use-checkpoint-management.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export function useCheckpointManagement(
193193
onEditModeChange?.(false)
194194
onCancelEdit?.()
195195
pendingEditRef.current = null
196-
}, [])
196+
}, [onEditModeChange, onCancelEdit])
197197

198198
/**
199199
* Continues with edit WITHOUT reverting checkpoint

0 commit comments

Comments
 (0)