From 04d7cffc3a3115690562972c8c18d9db68569053 Mon Sep 17 00:00:00 2001 From: kerenfinkelstein Date: Tue, 26 Sep 2023 13:02:20 +0300 Subject: [PATCH] feat: add create experiments in job --- ui/src/features/components/JobForm/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/features/components/JobForm/index.js b/ui/src/features/components/JobForm/index.js index 6a097f67..cfb6f153 100644 --- a/ui/src/features/components/JobForm/index.js +++ b/ui/src/features/components/JobForm/index.js @@ -55,7 +55,6 @@ class Form extends React.Component { optionToValue: { 'Load test': 'load_test', 'Functional test': 'functional_test' }, valueToOption: { load_test: 'Load test', functional_test: 'Functional test' } }, - { group: 'section_a', bottom: [ @@ -193,7 +192,7 @@ class Form extends React.Component { } ] }, - { + ...(props.experiments.length > 0 ? [{ group: 'section_c', children: [ @@ -291,7 +290,7 @@ class Form extends React.Component { hiddenCondition: (state) => state.add_experiment_form_hidden === true } ] - }, + }] : []), { group: 'section_d', flexDirection: 'column',