Skip to content

Commit

Permalink
use business name for search columns on dataset strucuture page (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNenashev committed May 30, 2024
1 parent 1d7675c commit 6d49481
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6d49481

Please sign in to comment.