Skip to content

Commit 81709a1

Browse files
committed
fix(run-job): fix run job button when job has no options
Fixes #1257
1 parent 7a0425c commit 81709a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/runCards/JobCard/JobModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ export const JobModal = ({
169169
DialogProps={{ maxWidth: "md", fullWidth: true }}
170170
id={`job-${jobId}`}
171171
open={open}
172-
submitDisabled={!formRef.current?.validateForm() || !inputsValid}
172+
submitDisabled={
173+
(formRef.current?.validateForm() !== undefined && !formRef.current?.validateForm()) ||
174+
!inputsValid
175+
}
173176
submitText="Run"
174177
title={job?.name ?? "Run Job"}
175178
onClose={onClose}

0 commit comments

Comments
 (0)