From a04b9c9d600e42aa03136d278461004b6fd4fbaa Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 16 Jul 2025 09:30:04 -0700 Subject: [PATCH] clear errors on submit for DB validations --- .../Agents/SQLConnectorSelection/NewConnectionModal.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx b/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx index 46c3d999..9c5327b9 100644 --- a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx +++ b/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx @@ -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);