Skip to content

Commit

Permalink
frontend: Hide folders drop down in job editor if no folders exist
Browse files Browse the repository at this point in the history
Closes #254
  • Loading branch information
pschlan committed Aug 3, 2024
1 parent 0471fe1 commit 0a2c4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/jobs/JobEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export default function JobEditor({ match }) {
fullWidth
required
/>
<div>
{folders && folders.length > 0 && <div>
<InputLabel shrink id='folder-label'>
{t('jobs.folder')}
</InputLabel>
Expand All @@ -461,7 +461,7 @@ export default function JobEditor({ match }) {
{folders.map(folder =>
<MenuItem value={folder.folderId} key={folder.folderId}>{folder.title}</MenuItem>)}
</Select>
</div>
</div>}
<FormControlLabel
control={<Switch
checked={jobEnabled}
Expand Down

0 comments on commit 0a2c4d5

Please sign in to comment.