From 66b72ddbce7678ff15f30be4fbdc2c78efcaba7a Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Fri, 30 Dec 2022 19:12:50 +0800 Subject: [PATCH] fix(console): clear connector create form state on closed (#2780) --- .../console/src/pages/Connectors/index.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/console/src/pages/Connectors/index.tsx b/packages/console/src/pages/Connectors/index.tsx index d4cc6cb1a..6e545d1b5 100644 --- a/packages/console/src/pages/Connectors/index.tsx +++ b/packages/console/src/pages/Connectors/index.tsx @@ -163,14 +163,16 @@ const Connectors = () => { - { - navigate(`${basePathname}/${tab}`); - void mutate(); - }} - /> + {Boolean(createConnectorType) && ( + { + navigate(`${basePathname}/${tab}`); + void mutate(); + }} + /> + )} ); };