mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
fix: A newly connected database doesn't appear in the databases list if user connected database using the 'plus' button (#19967)
* fix: A newly connected database doesn't appear in the databases list if user connected database using the 'plus' button * include onDatabaseAdd on successful import
This commit is contained in:
@@ -519,7 +519,6 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
setImportingModal(false);
|
||||
setPasswords({});
|
||||
setConfirmedOverwrite(false);
|
||||
if (onDatabaseAdd) onDatabaseAdd();
|
||||
onHide();
|
||||
};
|
||||
|
||||
@@ -652,6 +651,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
confirmedOverwrite,
|
||||
);
|
||||
if (dbId) {
|
||||
if (onDatabaseAdd) onDatabaseAdd();
|
||||
onClose();
|
||||
addSuccessToast(t('Database connected'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user