[Glitch] Fix “Filter this post” potentially listing deleted filters
Port 2cae5f5b8d4d0702fe9835a0ce2782f238755d0c to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
3ff340c790
commit
43a1bfd05d
@ -35,7 +35,7 @@ export default function filters(state = ImmutableMap(), action) {
|
|||||||
case FILTERS_CREATE_SUCCESS:
|
case FILTERS_CREATE_SUCCESS:
|
||||||
return normalizeFilter(state, action.filter);
|
return normalizeFilter(state, action.filter);
|
||||||
case FILTERS_FETCH_SUCCESS:
|
case FILTERS_FETCH_SUCCESS:
|
||||||
//TODO: handle deleting obsolete filters
|
return normalizeFilters(ImmutableMap(), action.filters);
|
||||||
case FILTERS_IMPORT:
|
case FILTERS_IMPORT:
|
||||||
return normalizeFilters(state, action.filters);
|
return normalizeFilters(state, action.filters);
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user