Skip to content

Commit

Permalink
feat(config-ui): add full name in data scope search (#5742)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet committed Jul 25, 2023
1 parent 5896f41 commit 7d3c4a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
export type ItemType = {
id: ID;
name: string;
fullName: string;
data: any;
};

0 comments on commit 7d3c4a6

Please sign in to comment.