From e1918d665190118d20f31ccba4043299935d4f7d Mon Sep 17 00:00:00 2001 From: Frederic Stahel Date: Fri, 20 Dec 2024 15:39:03 +0100 Subject: [PATCH] Ensure file type resets when import modal closes --- .../pages/overview/sidePanelContent/importer/importModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/src/pages/overview/sidePanelContent/importer/importModal.tsx b/src/client/src/pages/overview/sidePanelContent/importer/importModal.tsx index afb577476..5582a4832 100644 --- a/src/client/src/pages/overview/sidePanelContent/importer/importModal.tsx +++ b/src/client/src/pages/overview/sidePanelContent/importer/importModal.tsx @@ -76,6 +76,7 @@ const ImportModal = ({ const handleFormSubmit = async () => { setCreating(true); + setFileType(""); handleBoreholeImport(); }; @@ -85,6 +86,7 @@ const ImportModal = ({ key="sb-em-5" onClose={() => { setModal(false); + setFileType(""); }} open={modal} size="large">