clear errors on submit for DB validations

This commit is contained in:
timothycarambat 2025-07-16 09:30:04 -07:00
parent 49ea545d7f
commit a04b9c9d60

View File

@ -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);