mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: dataset exists error in save Dataset modal (#21244)
* dataset exists error * fixed flashing modal
This commit is contained in:
@@ -1425,7 +1425,10 @@ export function createDatasource(vizOptions) {
|
||||
|
||||
return Promise.resolve(json);
|
||||
})
|
||||
.catch(() => {
|
||||
.catch(error => {
|
||||
getClientErrorObject(error).then(e => {
|
||||
dispatch(addDangerToast(e.error));
|
||||
});
|
||||
dispatch(
|
||||
createDatasourceFailed(
|
||||
t('An error occurred while creating the data source'),
|
||||
|
||||
Reference in New Issue
Block a user