This is an automated email from the ASF dual-hosted git repository.
likyh 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 17564b92b fix(config-ui): missed name in gitlab data scope search
(#4547)
17564b92b is described below
commit 17564b92b38e8f17b6e19006daf10467099ee5b2
Author: 青湛 <[email protected]>
AuthorDate: Wed Mar 1 10:46:09 2023 +0800
fix(config-ui): missed name in gitlab data scope search (#4547)
---
config-ui/src/plugins/register/bitbucket/data-scope.tsx | 2 +-
config-ui/src/plugins/register/gitlab/data-scope.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config-ui/src/plugins/register/bitbucket/data-scope.tsx
b/config-ui/src/plugins/register/bitbucket/data-scope.tsx
index c1a96b178..9fd8a1163 100644
--- a/config-ui/src/plugins/register/bitbucket/data-scope.tsx
+++ b/config-ui/src/plugins/register/bitbucket/data-scope.tsx
@@ -18,7 +18,7 @@
import React, { useMemo } from 'react';
-import { DataScopeMillerColumns, DataScopeSearch } from '@/plugins';
+import { DataScopeMillerColumns } from '@/plugins';
import type { ScopeItemType } from './types';
diff --git a/config-ui/src/plugins/register/gitlab/data-scope.tsx
b/config-ui/src/plugins/register/gitlab/data-scope.tsx
index 0c97579d4..c7f46e11e 100644
--- a/config-ui/src/plugins/register/gitlab/data-scope.tsx
+++ b/config-ui/src/plugins/register/gitlab/data-scope.tsx
@@ -30,7 +30,7 @@ interface Props {
export const GitLabDataScope = ({ connectionId, onChangeItems, ...props }:
Props) => {
const selectedItems = useMemo(
- () => props.selectedItems.map((it) => ({ id: `${it.gitlabId}`, data: it
})),
+ () => props.selectedItems.map((it) => ({ id: `${it.gitlabId}`, name:
it.name, data: it })),
[props.selectedItems],
);