This is an automated email from the ASF dual-hosted git repository.
klesh 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 04a66aac8 feat(config-ui): add full name in data scope search (#5741)
04a66aac8 is described below
commit 04a66aac827edee7a50100e23f650d4dd4de12e6
Author: 青湛 <[email protected]>
AuthorDate: Tue Jul 25 21:59:50 2023 +1200
feat(config-ui): add full name in data scope search (#5741)
---
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;
};