diff --git a/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte b/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte index 887ce1090d..2dd77870a1 100644 --- a/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte +++ b/packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte @@ -207,11 +207,13 @@ const js = await API.csvToJson(csv) tmpCustomData = JSON.stringify(js) } + modal.hide() + saveCustomData() } catch (error) { notifications.error("Failed to parse CSV") + modal.hide() + drawer.show() } - modal.hide() - drawer.show() } @@ -262,9 +264,7 @@ Save -