From da4878492fad8fcd90cc7e97943427c0ef12e724 Mon Sep 17 00:00:00 2001 From: Wang Sijie Date: Tue, 28 Jun 2022 17:30:15 +0800 Subject: [PATCH] fix(console): clear error message before saving connector config (#1273) --- packages/console/src/pages/ConnectorDetails/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/console/src/pages/ConnectorDetails/index.tsx b/packages/console/src/pages/ConnectorDetails/index.tsx index e37ad5c5e..33c4509e3 100644 --- a/packages/console/src/pages/ConnectorDetails/index.tsx +++ b/packages/console/src/pages/ConnectorDetails/index.tsx @@ -63,6 +63,8 @@ const ConnectorDetails = () => { return; } + setSaveError(undefined); + if (!config) { setSaveError(t('connector_details.save_error_empty_config'));