Skip to content

Commit

Permalink
update state
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed Mar 10, 2021
1 parent 88b7a33 commit e9c0a74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
10 changes: 7 additions & 3 deletions superset-frontend/src/dashboard/actions/nativeFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@

import { makeApi } from '@superset-ui/core';
import { Dispatch } from 'redux';
import { LOAD_DASHBOARD_BOOTSTRAPDATA } from './bootstrapData';
import { FilterConfiguration } from 'src/dashboard/components/nativeFilters/types';
import {
Filter,
FilterConfiguration,
} from 'src/dashboard/components/nativeFilters/types';
import { DataMaskType, DataMaskStateWithId } from 'src/dataMask/types';
import {
SET_DATA_MASK_FOR_FILTER_CONFIG_COMPLETE,
SET_DATA_MASK_FOR_FILTER_CONFIG_FAIL,
} from 'src/dataMask/actions';
import { LOAD_DASHBOARD_BOOTSTRAPDATA } from './bootstrapData';
import { dashboardInfoChanged } from './dashboardInfo';
import { FiltersSet } from '../reducers/types';

Expand Down Expand Up @@ -189,4 +192,5 @@ export type AnyFilterAction =
| SetFilterSetsConfigBegin
| SetFilterSetsConfigComplete
| SetFilterSetsConfigFail
| SaveFilterSets;
| SaveFilterSets
| SetBooststapData;
14 changes: 0 additions & 14 deletions superset-frontend/src/dashboard/reducers/nativeFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,6 @@ export default function nativeFilterReducer(
case LOAD_DASHBOARD_BOOTSTRAPDATA:
return {
filters: action.data.nativeFilters.filters,
filtersState: action.data.nativeFilters.filtersState,
};
case SET_EXTRA_FORM_DATA:
return {
...state,
filters,
filtersState: {
...filtersState,
[action.filterId]: {
...filtersState[action.filterId],
extraFormData: action.extraFormData,
currentState: action.currentState,
},
},
};
case SAVE_FILTER_SETS:
return {
Expand Down

0 comments on commit e9c0a74

Please sign in to comment.