fixing dashboard state filters (#20480)

This commit is contained in:
Peter Pisljar 2018-07-09 15:28:37 +02:00 committed by GitHub
parent bd52c60742
commit 0c7b44dcb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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