This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch release-v0.18
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.18 by this push:
new 7d3c4a699 feat(config-ui): add full name in data scope search (#5742)
7d3c4a699 is described below
commit 7d3c4a699dfc07d2e069bf1ea8c3fc6ebf188b37
Author: 青湛 <[email protected]>
AuthorDate: Tue Jul 25 22:00:09 2023 +1200
feat(config-ui): add full name in data scope search (#5742)
---
config-ui/src/plugins/components/data-scope-search/index.tsx | 2 +-
config-ui/src/plugins/components/data-scope-search/types.ts | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/config-ui/src/plugins/components/data-scope-search/index.tsx
b/config-ui/src/plugins/components/data-scope-search/index.tsx
index faa8394ce..ac7dc2fc2 100644
--- a/config-ui/src/plugins/components/data-scope-search/index.tsx
+++ b/config-ui/src/plugins/components/data-scope-search/index.tsx
@@ -59,7 +59,7 @@ export const DataScopeSearch = ({ plugin, connectionId,
disabledItems, selectedI
const getKey = (it: ItemType) => it.id;
- const getName = (it: ItemType) => it.name;
+ const getName = (it: ItemType) => it.fullName;
const handleChangeItems = (selectedItems: ItemType[]) =>
onChangeItems?.(selectedItems.map((it) => it.data));
diff --git a/config-ui/src/plugins/components/data-scope-search/types.ts
b/config-ui/src/plugins/components/data-scope-search/types.ts
index 42d7a30a8..c3f6318a3 100644
--- a/config-ui/src/plugins/components/data-scope-search/types.ts
+++ b/config-ui/src/plugins/components/data-scope-search/types.ts
@@ -19,5 +19,6 @@
export type ItemType = {
id: ID;
name: string;
+ fullName: string;
data: any;
};