mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
correct updateTimerange reducer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user