You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2023/10/11 05:50:26 UTC

[incubator-devlake] 03/05: fix(config-ui): the row key is error

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

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

commit f691fb1f4571ee997a8fbfde174e33ca3cbd6fae
Author: mintsweet <0x...@gmail.com>
AuthorDate: Wed Oct 11 18:38:30 2023 +1300

    fix(config-ui): the row key is error
---
 config-ui/src/pages/connection/detail/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/pages/connection/detail/index.tsx b/config-ui/src/pages/connection/detail/index.tsx
index 21375994f..c813686e5 100644
--- a/config-ui/src/pages/connection/detail/index.tsx
+++ b/config-ui/src/pages/connection/detail/index.tsx
@@ -367,7 +367,7 @@ const ConnectionDetail = ({ plugin, connectionId }: Props) => {
             onCreate: handleShowCreateDataScopeDialog,
           }}
           rowSelection={{
-            getRowKey: (row) => getPluginScopeId(plugin, row),
+            getRowKey: (row) => row.id,
             selectedRowKeys: scopeIds,
             onChange: (selectedRowKeys) => setScopeIds(selectedRowKeys),
           }}