|
|
@@ -91,7 +91,6 @@ class DashboardDesignerContent extends React.Component {
|
|
|
|
|
|
createFilters = (filters) => {
|
|
|
const { dispatch } = this.props;
|
|
|
- // dispatch({ type: 'dashboardDesigner/silentSetField', name: 'filters', value: filters });
|
|
|
dispatch({ type: 'dashboardDesigner/changeFilters', filters });
|
|
|
this.hideFilterBox()
|
|
|
}
|
|
|
@@ -144,7 +143,7 @@ class DashboardDesignerContent extends React.Component {
|
|
|
const key = e.target.dataset.key;
|
|
|
const { dashboardDesigner, dispatch } = this.props;
|
|
|
const filters = dashboardDesigner.filters;
|
|
|
- dispatch({ type: 'dashboardDesigner/silentSetField', name: 'filters', value: filters.map( f => {
|
|
|
+ dispatch({ type: 'dashboardDesigner/changeFilters', filters: filters.map( f => {
|
|
|
if(+f.key === +key) {
|
|
|
f = { ...f, using: f.type ? !f.using : false}
|
|
|
}
|