diff --git a/components/runCards/JobCard/JobModal.tsx b/components/runCards/JobCard/JobModal.tsx index 0b77836ec..4900bc168 100644 --- a/components/runCards/JobCard/JobModal.tsx +++ b/components/runCards/JobCard/JobModal.tsx @@ -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}