From 7e1d296586a72f31fce54086fc1969b4d656c96b Mon Sep 17 00:00:00 2001
From: mintsweet <0x1304570@gmail.com>
Date: Wed, 8 May 2024 19:33:30 +1200
Subject: [PATCH] fix: some bugs for scope config
---
.../src/plugins/components/scope-config-select/index.tsx | 3 +++
config-ui/src/routes/connection/connection.tsx | 8 +++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/config-ui/src/plugins/components/scope-config-select/index.tsx b/config-ui/src/plugins/components/scope-config-select/index.tsx
index dfc37a16362..a56a96b8938 100644
--- a/config-ui/src/plugins/components/scope-config-select/index.tsx
+++ b/config-ui/src/plugins/components/scope-config-select/index.tsx
@@ -45,6 +45,8 @@ export const ScopeConfigSelect = ({ plugin, connectionId, scopeConfigId, onCance
[data, scopeConfigId],
);
+ const defaultName = useMemo(() => `shared-config-<${(data ?? []).length}>`, [data]);
+
useEffect(() => {
setTrId(scopeConfigId);
}, [scopeConfigId]);
@@ -103,6 +105,7 @@ export const ScopeConfigSelect = ({ plugin, connectionId, scopeConfigId, onCance