mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
clear tags and categories when switching to narrative
This commit is contained in:
@@ -144,6 +144,15 @@ function toggleFilter (appState, action) {
|
||||
}
|
||||
}
|
||||
|
||||
function clearFilter (appState, action) {
|
||||
return {
|
||||
...appState,
|
||||
filters: {
|
||||
...appState.filters,
|
||||
[action.filter]: []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function updateTimeRange (appState, action) { // XXX
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user