mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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 { makeApi } from '@superset-ui/core';
|
||||||
import { Dispatch } from 'redux';
|
import { Dispatch } from 'redux';
|
||||||
import {
|
import { FilterConfiguration } from 'src/dashboard/components/nativeFilters/types';
|
||||||
Filter,
|
|
||||||
FilterConfiguration,
|
|
||||||
} from 'src/dashboard/components/nativeFilters/types';
|
|
||||||
import { DataMaskType, DataMaskStateWithId } from 'src/dataMask/types';
|
import { DataMaskType, DataMaskStateWithId } from 'src/dataMask/types';
|
||||||
import {
|
import {
|
||||||
SET_DATA_MASK_FOR_FILTER_CONFIG_COMPLETE,
|
SET_DATA_MASK_FOR_FILTER_CONFIG_COMPLETE,
|
||||||
@ -30,7 +27,12 @@ import {
|
|||||||
} from 'src/dataMask/actions';
|
} from 'src/dataMask/actions';
|
||||||
import { HYDRATE_DASHBOARD } from './hydrate';
|
import { HYDRATE_DASHBOARD } from './hydrate';
|
||||||
import { dashboardInfoChanged } from './dashboardInfo';
|
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 const SET_FILTER_CONFIG_BEGIN = 'SET_FILTER_CONFIG_BEGIN';
|
||||||
export interface SetFilterConfigBegin {
|
export interface SetFilterConfigBegin {
|
||||||
@ -111,7 +113,8 @@ export const setFilterConfiguration = (
|
|||||||
|
|
||||||
type BootstrapData = {
|
type BootstrapData = {
|
||||||
nativeFilters: {
|
nativeFilters: {
|
||||||
filters: Filter;
|
filters: Filters;
|
||||||
|
filterSets: FilterSets;
|
||||||
filtersState: object;
|
filtersState: object;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -73,6 +73,7 @@ export default function nativeFilterReducer(
|
|||||||
case HYDRATE_DASHBOARD:
|
case HYDRATE_DASHBOARD:
|
||||||
return {
|
return {
|
||||||
filters: action.data.nativeFilters.filters,
|
filters: action.data.nativeFilters.filters,
|
||||||
|
filterSets: action.data.nativeFilters.filterSets,
|
||||||
};
|
};
|
||||||
case SAVE_FILTER_SETS:
|
case SAVE_FILTER_SETS:
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user