From f83ad35c065926b30dc412b9fe3764a4c304295f Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Wed, 1 Mar 2023 18:23:01 +0100 Subject: [PATCH] fix(dashboard): Cross-filter search icon in filter bar --- .../nativeFilters/FilterBar/CrossFilters/CrossFilter.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/CrossFilters/CrossFilter.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/CrossFilters/CrossFilter.tsx index f03e777b2504a..981d99e56d66a 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/CrossFilters/CrossFilter.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/CrossFilters/CrossFilter.tsx @@ -21,7 +21,7 @@ import React, { useCallback } from 'react'; import { css, useTheme } from '@superset-ui/core'; import { CrossFilterIndicator } from 'src/dashboard/components/nativeFilters/selectors'; import { useDispatch } from 'react-redux'; -import { setFocusedNativeFilter } from 'src/dashboard/actions/nativeFilters'; +import { setDirectPathToChild } from 'src/dashboard/actions/dashboardState'; import { FilterBarOrientation } from 'src/dashboard/types'; import { updateDataMask } from 'src/dataMask/actions'; import CrossFilterTag from './CrossFilterTag'; @@ -39,7 +39,7 @@ const CrossFilter = (props: { const handleHighlightFilterSource = useCallback( (path?: string[]) => { if (path) { - dispatch(setFocusedNativeFilter(path[0])); + dispatch(setDirectPathToChild(path)); } }, [dispatch],