Skip to content

Commit

Permalink
fix(dashboard): Cross-filter search icon in filter bar (apache#23250)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje authored Mar 1, 2023
1 parent 134acba commit 2ba9d1b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -39,7 +39,7 @@ const CrossFilter = (props: {
const handleHighlightFilterSource = useCallback(
(path?: string[]) => {
if (path) {
dispatch(setFocusedNativeFilter(path[0]));
dispatch(setDirectPathToChild(path));
}
},
[dispatch],
Expand Down

0 comments on commit 2ba9d1b

Please sign in to comment.