mirror of https://github.com/apache/superset.git
fix(dashboard): filter set hydration not working (#14129)
This commit is contained in:
parent
f1acb2f974
commit
68e11cd47f
|
@ -19,10 +19,7 @@
|
|||
|
||||
import { makeApi } from '@superset-ui/core';
|
||||
import { Dispatch } from 'redux';
|
||||
import {
|
||||
Filter,
|
||||
FilterConfiguration,
|
||||
} from 'src/dashboard/components/nativeFilters/types';
|
||||
import { FilterConfiguration } from 'src/dashboard/components/nativeFilters/types';
|
||||
import { DataMaskType, DataMaskStateWithId } from 'src/dataMask/types';
|
||||
import {
|
||||
SET_DATA_MASK_FOR_FILTER_CONFIG_COMPLETE,
|
||||
|
@ -30,7 +27,12 @@ import {
|
|||
} from 'src/dataMask/actions';
|
||||
import { HYDRATE_DASHBOARD } from './hydrate';
|
||||
import { dashboardInfoChanged } from './dashboardInfo';
|
||||
import { DashboardInfo, FilterSet } from '../reducers/types';
|
||||
import {
|
||||
DashboardInfo,
|
||||
Filters,
|
||||
FilterSet,
|
||||
FilterSets,
|
||||
} from '../reducers/types';
|
||||
|
||||
export const SET_FILTER_CONFIG_BEGIN = 'SET_FILTER_CONFIG_BEGIN';
|
||||
export interface SetFilterConfigBegin {
|
||||
|
@ -111,7 +113,8 @@ export const setFilterConfiguration = (
|
|||
|
||||
type BootstrapData = {
|
||||
nativeFilters: {
|
||||
filters: Filter;
|
||||
filters: Filters;
|
||||
filterSets: FilterSets;
|
||||
filtersState: object;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -73,6 +73,7 @@ export default function nativeFilterReducer(
|
|||
case HYDRATE_DASHBOARD:
|
||||
return {
|
||||
filters: action.data.nativeFilters.filters,
|
||||
filterSets: action.data.nativeFilters.filterSets,
|
||||
};
|
||||
case SAVE_FILTER_SETS:
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue