Skip to content

Commit a745a42

Browse files
committed
fix: show header only when there is an input
1 parent 832ca50 commit a745a42

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/components/runCards/JobCard/JobInputsAndOptionsForm.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,21 @@ export const JobInputsAndOptionsForm = ({
3737
return (
3838
<Grid container spacing={2}>
3939
<>
40-
<Grid size={{ xs: 12 }}>
41-
<Typography component="h3" sx={{ fontWeight: "bold" }} variant="subtitle1">
42-
Inputs
43-
</Typography>
44-
</Grid>
4540
{!!inputs && (
46-
<JobInputFields
47-
initialValues={specVariables}
48-
inputs={inputs}
49-
inputsData={inputsData}
50-
projectId={projectId}
51-
onChange={setInputsData}
52-
/>
41+
<>
42+
<Grid size={{ xs: 12 }}>
43+
<Typography component="h3" sx={{ fontWeight: "bold" }} variant="subtitle1">
44+
Inputs
45+
</Typography>
46+
</Grid>
47+
<JobInputFields
48+
initialValues={specVariables}
49+
inputs={inputs}
50+
inputsData={inputsData}
51+
projectId={projectId}
52+
onChange={setInputsData}
53+
/>
54+
</>
5355
)}
5456
</>
5557
<Grid size={{ xs: 12 }}>

0 commit comments

Comments
 (0)