This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new b4edb14a4 fix(config-ui): data scope cannot display correctly in 
project (#5459)
b4edb14a4 is described below

commit b4edb14a45e0257d8807b012f20fc075b26fe8d7
Author: 青湛 <[email protected]>
AuthorDate: Tue Jun 13 20:39:22 2023 +0800

    fix(config-ui): data scope cannot display correctly in project (#5459)
---
 config-ui/src/pages/blueprint/connection-detail/index.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/pages/blueprint/connection-detail/index.tsx 
b/config-ui/src/pages/blueprint/connection-detail/index.tsx
index 213eadf45..344530630 100644
--- a/config-ui/src/pages/blueprint/connection-detail/index.tsx
+++ b/config-ui/src/pages/blueprint/connection-detail/index.tsx
@@ -58,7 +58,7 @@ export const BlueprintConnectionDetailPage = () => {
 
     const scopeIds = blueprint.settings.connections
       .find((cs: any) => cs.plugin === plugin && cs.connectionId === 
+connectionId)
-      .scopes.map((sc: any) => +sc.id);
+      .scopes.map((sc: any) => sc.id);
 
     return {
       blueprint,
@@ -68,7 +68,7 @@ export const BlueprintConnectionDetailPage = () => {
         id: +connectionId,
         name: connection.name,
       },
-      scopes: scopes.filter((sc: any) => 
scopeIds.includes(sc[getPluginId(plugin)])),
+      scopes: scopes.filter((sc: any) => 
scopeIds.includes(`${sc[getPluginId(plugin)]}`)),
     };
   }, [version, pname, bid]);
 

Reply via email to