From 38f7662ff6d318abcd07b6915d47d1dc6092f9fb Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Fri, 18 Jan 2019 17:47:28 +0000 Subject: [PATCH] correct updateTimerange reducer --- src/reducers/app.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/reducers/app.js b/src/reducers/app.js index f17afac..bc79b05 100644 --- a/src/reducers/app.js +++ b/src/reducers/app.js @@ -156,11 +156,13 @@ function updateCategoryFilters(appState, action) { } function updateTimeRange(appState, action) { // XXX - return Object.assign({}, appState, { - filters: Object.assign({}, appState.filters, { - timerange: action.timerange - }), - }) + return { + ...appState, + timeline: { + ...appState.timeline, + range: action.timerange + }, + } } function resetAllFilters(appState) { // XXX