From 6d49481c3f75909ff89ce9c90116b572a891e8af Mon Sep 17 00:00:00 2001 From: Andrey Nenashev Date: Thu, 30 May 2024 14:48:59 +0200 Subject: [PATCH] use business name for search columns on dataset strucuture page (#1684) --- .../DatasetStructureOverview/lib/useStructure.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/lib/useStructure.ts b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/lib/useStructure.ts index 40247062c..30fcae21a 100644 --- a/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/lib/useStructure.ts +++ b/odd-platform-ui/src/components/DataEntityDetails/DatasetStructure/DatasetStructureOverview/lib/useStructure.ts @@ -28,8 +28,10 @@ export default function useStructure() { const handleSearch = useCallback( (query: string) => { - const itemIdx = datasetStructureRoot?.findIndex(item => - item.name.toLowerCase().includes(query.toLowerCase()) + const itemIdx = datasetStructureRoot?.findIndex( + item => + item.name.toLowerCase().includes(query.toLowerCase()) || + item.internalName?.toLowerCase().includes(query.toLowerCase()) ); if (itemIdx !== undefined && itemIdx > -1) {