From 0a2c4d59c87663148f627e2d27f551121d2d9035 Mon Sep 17 00:00:00 2001 From: Patrick Schlangen Date: Sat, 3 Aug 2024 15:22:09 +0200 Subject: [PATCH] frontend: Hide folders drop down in job editor if no folders exist Closes #254 --- frontend/src/components/jobs/JobEditor.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/jobs/JobEditor.jsx b/frontend/src/components/jobs/JobEditor.jsx index 14596c41..ed404337 100644 --- a/frontend/src/components/jobs/JobEditor.jsx +++ b/frontend/src/components/jobs/JobEditor.jsx @@ -447,7 +447,7 @@ export default function JobEditor({ match }) { fullWidth required /> -
+ {folders && folders.length > 0 &&
{t('jobs.folder')} @@ -461,7 +461,7 @@ export default function JobEditor({ match }) { {folders.map(folder => {folder.title})} -
+
}