From 83e2a05dbc273e5cc3492c5c714151b5c837c701 Mon Sep 17 00:00:00 2001 From: Peter Pisljar Date: Mon, 9 Jul 2018 22:35:52 +0200 Subject: [PATCH] fixing dashboard state filters (#20480) (#20555) --- src/core_plugins/kibana/public/dashboard/reducers/view.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core_plugins/kibana/public/dashboard/reducers/view.ts b/src/core_plugins/kibana/public/dashboard/reducers/view.ts index 4870e2a3e9974..e382c3b30a60e 100644 --- a/src/core_plugins/kibana/public/dashboard/reducers/view.ts +++ b/src/core_plugins/kibana/public/dashboard/reducers/view.ts @@ -17,6 +17,7 @@ * under the License. */ +import { cloneDeep } from 'lodash'; import { Reducer } from 'redux'; import { ViewActions, ViewActionTypeKeys } from '../actions'; @@ -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) => ({