From 7fefe1d4dd95177a3089b0dbaeb1aed1e8755284 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Mon, 14 Oct 2024 21:54:37 +0530 Subject: [PATCH] add sesrchField for search property by name --- .../CustomProperty/AddCustomProperty/AddCustomProperty.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Settings/CustomProperty/AddCustomProperty/AddCustomProperty.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Settings/CustomProperty/AddCustomProperty/AddCustomProperty.tsx index b35ea89fe94d..11a0cb93dfaf 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Settings/CustomProperty/AddCustomProperty/AddCustomProperty.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Settings/CustomProperty/AddCustomProperty/AddCustomProperty.tsx @@ -107,7 +107,8 @@ const AddCustomProperty = () => { const title = startCase(getEntityName(type).replace(/-cp/g, '')); return { - key: title, + searchField: title, + key: type.name, label: (
{Icon && } @@ -294,8 +295,8 @@ const AddCustomProperty = () => { field: t('label.type'), })}`, showSearch: true, - filterOption: (input: string, option: { key: string }) => { - return (option?.key ?? '') + filterOption: (input: string, option: { searchField: string }) => { + return (option?.searchField ?? '') .toLowerCase() .includes(input.toLowerCase()); },