Skip to content

Commit a1b8380

Browse files
Adam GoughAdam Gough
authored andcommitted
fix: deployedWorkflowState in modal
1 parent 5a09db7 commit a1b8380

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

apps/sim/app/w/[id]/components/control-bar/components/deployment-controls/components/deployed-workflow-modal.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ export function DeployedWorkflowModal({
5252
}))
5353

5454
const handleRevert = () => {
55-
revertToDeployedState(deployedWorkflowState)
56-
setShowRevertDialog(false)
57-
onClose()
55+
// Add the missing loopBlocks property
56+
const completeState = {
57+
...deployedWorkflowState,
58+
loopBlocks: {} // Add empty loopBlocks if not present
59+
};
60+
61+
revertToDeployedState(completeState);
62+
setShowRevertDialog(false);
63+
onClose();
5864
}
5965

6066
return (

0 commit comments

Comments
 (0)