Skip to content

Commit

Permalink
fixing dashboard state filters (elastic#20480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Jul 9, 2018
1 parent b61d509 commit d4ce8a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core_plugins/kibana/public/dashboard/reducers/view.ts
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/

import { cloneDeep } from 'lodash';
import { Reducer } from 'redux';
import { ViewActions, ViewActionTypeKeys } from '../actions';

Expand Down Expand Up @@ -60,7 +61,7 @@ const updateTimeRange = (view: ViewState, timeRange: TimeRange) => ({

const updateFilters = (view: ViewState, filters: Filters) => ({
...view,
filters,
filters: cloneDeep(filters),
});

const updateQuery = (view: ViewState, query: Query) => ({
Expand Down

0 comments on commit d4ce8a2

Please sign in to comment.