[Glitch] Fix “Filter this post” potentially listing deleted filters

Port 1d3d86fa53 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
Claire 2 years ago
parent ae8d479635
commit 76e2074e47

@ -35,7 +35,7 @@ export default function filters(state = ImmutableMap(), action) {
case FILTERS_CREATE_SUCCESS:
return normalizeFilter(state, action.filter);
case FILTERS_FETCH_SUCCESS:
//TODO: handle deleting obsolete filters
return normalizeFilters(ImmutableMap(), action.filters);
case FILTERS_IMPORT:
return normalizeFilters(state, action.filters);
default:

Loading…
Cancel
Save