Skip to content

Commit

Permalink
fixed flashing modal
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Aug 30, 2022
1 parent 1961582 commit 5ba0d51
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,12 @@ export const SaveDatasetModal: FunctionComponent<SaveDatasetModalProps> = ({
[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) => {
Expand Down

0 comments on commit 5ba0d51

Please sign in to comment.