You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ji...@apache.org on 2023/03/01 19:31:23 UTC

[superset] branch master updated: fix(dashboard): Cross-filter search icon in filter bar (#23250)

This is an automated email from the ASF dual-hosted git repository.

jinghuayao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 2ba9d1b79e fix(dashboard): Cross-filter search icon in filter bar (#23250)
2ba9d1b79e is described below

commit 2ba9d1b79e7694e0a77295877ee956c9bf3b7061
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Wed Mar 1 20:31:13 2023 +0100

    fix(dashboard): Cross-filter search icon in filter bar (#23250)
---
 .../components/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 f03e777b25..981d99e56d 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],