clear errors on submit for DB validations
This commit is contained in:
parent
49ea545d7f
commit
a04b9c9d60
@ -84,7 +84,8 @@ export default function NewSQLConnection({
|
||||
showToast(
|
||||
error ||
|
||||
"Failed to establish database connection. Please check your connection details.",
|
||||
"error"
|
||||
"error",
|
||||
{ clear: true }
|
||||
);
|
||||
setIsValidating(false);
|
||||
return;
|
||||
@ -102,7 +103,8 @@ export default function NewSQLConnection({
|
||||
showToast(
|
||||
error?.message ||
|
||||
"Failed to validate connection. Please check your connection details.",
|
||||
"error"
|
||||
"error",
|
||||
{ clear: true }
|
||||
);
|
||||
} finally {
|
||||
setIsValidating(false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user