Skip to content

Commit

Permalink
fix(run-job): fix run job button when job has no options
Browse files Browse the repository at this point in the history
Fixes #1257
  • Loading branch information
OliverDudgeon committed Mar 5, 2024
1 parent 7a0425c commit 81709a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/runCards/JobCard/JobModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ export const JobModal = ({
DialogProps={{ maxWidth: "md", fullWidth: true }}
id={`job-${jobId}`}
open={open}
submitDisabled={!formRef.current?.validateForm() || !inputsValid}
submitDisabled={
(formRef.current?.validateForm() !== undefined && !formRef.current?.validateForm()) ||
!inputsValid
}
submitText="Run"
title={job?.name ?? "Run Job"}
onClose={onClose}
Expand Down

0 comments on commit 81709a1

Please sign in to comment.