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) => ({