mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
clears errors when closing out of modal (#15623)
This commit is contained in:
@@ -355,6 +355,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
fetchResource,
|
||||
createResource,
|
||||
updateResource,
|
||||
clearError,
|
||||
} = useSingleViewResource<DatabaseObject>(
|
||||
'database',
|
||||
t('database'),
|
||||
@@ -399,6 +400,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
setDB({ type: ActionType.reset });
|
||||
setHasConnectedDb(false);
|
||||
setValidationErrors(null); // reset validation errors on close
|
||||
clearError();
|
||||
setEditNewDb(false);
|
||||
onHide();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user