correct updateTimerange reducer

This commit is contained in:
Lachlan Kermode
2019-01-18 17:47:28 +00:00
parent e671b3416c
commit 38f7662ff6

View File

@@ -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