diff --git a/superset-frontend/src/SqlLab/components/SaveDatasetModal/index.tsx b/superset-frontend/src/SqlLab/components/SaveDatasetModal/index.tsx index bd267d1a24112..31facf4401c0e 100644 --- a/superset-frontend/src/SqlLab/components/SaveDatasetModal/index.tsx +++ b/superset-frontend/src/SqlLab/components/SaveDatasetModal/index.tsx @@ -304,15 +304,12 @@ export const SaveDatasetModal: FunctionComponent = ({ [URL_PARAMS.formDataKey.name]: key, }); createWindow(url); + setDatasetName(getDefaultDatasetName()); + onHide(); }) .catch(() => { addDangerToast(t('An error occurred saving dataset')); - onHide(); }); - - setDatasetName(getDefaultDatasetName()); - console.log(formData); - onHide(); }; const handleOverwriteDatasetOption = (value: SelectValue, option: any) => {