Skip to content

Commit

Permalink
fix(dashboard): allow removing all step conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
LetItRock committed Jan 27, 2025
1 parent 1de04e1 commit 67660e2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export const EditStepConditionsForm = () => {
const updateStepData: Partial<StepUpdateDto> = {
controlValues: { ...step.controls.values, skip },
};
if (typeof skip === 'boolean') {
updateStepData.controlValues!.skip = null;
}

update(updateStepInWorkflow(workflow, step.stepId, updateStepData));
form.reset(values);
Expand Down

0 comments on commit 67660e2

Please sign in to comment.