From c897b1b47bf3174a69b886c90d18f86302d339d3 Mon Sep 17 00:00:00 2001 From: Osmar Benavidez Date: Wed, 7 Feb 2024 09:16:25 -0600 Subject: [PATCH] Fix issue #26 --- .../Submissions/CreateSubmissionForm/CreateSubmissionForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datanode-ui/src/modules/Submissions/CreateSubmissionForm/CreateSubmissionForm.tsx b/datanode-ui/src/modules/Submissions/CreateSubmissionForm/CreateSubmissionForm.tsx index 42a2137f..b89b6748 100644 --- a/datanode-ui/src/modules/Submissions/CreateSubmissionForm/CreateSubmissionForm.tsx +++ b/datanode-ui/src/modules/Submissions/CreateSubmissionForm/CreateSubmissionForm.tsx @@ -109,7 +109,7 @@ export const CreateSubmissionForm: React.FC }, []); useEffect(() => { - setState(defaultState(activeTab === CreateSubmissionFormTabs.SEPARATE_FILES ? AnalysisTypes.STRATEGUS : "")); + setState(defaultState(activeTab === CreateSubmissionFormTabs.SEPARATE_FILES ? AnalysisTypes.STRATEGUS : AnalysisTypes.CUSTOM)); }, [activeTab]); const getControlsList = async () => { @@ -436,7 +436,7 @@ export const CreateSubmissionForm: React.FC name="type" disablePortal id="type" - disabled={controlsList.analysisTypes?.length === 0 || activeTab === CreateSubmissionFormTabs.SEPARATE_FILES} + disabled={controlsList.analysisTypes?.length === 0 || !!state.type} options={controlsList.analysisTypes} value={state.type} placeholder={t("forms.create_submission.analysis_type_placeholder")}