Skip to content

Commit

Permalink
Don't enforce configuration in start task
Browse files Browse the repository at this point in the history
A workflow may have no configuration, so having the validation for
the start task modal expecting a non-zero length configuration is
wrong.
  • Loading branch information
Arnei committed Nov 6, 2023
1 parent e200bfe commit 098f854
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/components/events/partials/modals/StartTaskModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ const StartTaskModal = ({
steps[page].name !== "general" &&
!(
!!values.workflow &&
values.workflow !== "" &&
values.configuration && Object.keys(values.configuration).length === 0
values.workflow !== ""
)
) {
// @ts-expect-error TS(2339): Property 'worflow' does not exist on type '{}'.
errors.worflow = "Workflow not selected!";
errors.workflow = "Workflow not selected!";
}
return errors;
};
Expand Down

0 comments on commit 098f854

Please sign in to comment.