Skip to content

Commit e1918d6

Browse files
committed
Ensure file type resets when import modal closes
1 parent 13b7c8f commit e1918d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/src/pages/overview/sidePanelContent/importer/importModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const ImportModal = ({
7676

7777
const handleFormSubmit = async () => {
7878
setCreating(true);
79+
setFileType("");
7980
handleBoreholeImport();
8081
};
8182

@@ -85,6 +86,7 @@ const ImportModal = ({
8586
key="sb-em-5"
8687
onClose={() => {
8788
setModal(false);
89+
setFileType("");
8890
}}
8991
open={modal}
9092
size="large">

0 commit comments

Comments
 (0)