Fix “Filter this post” potentially listing deleted filters (#19051)

remotes/1703361221475462875/rebase/4.0.0rc1
Claire 2022-08-25 17:36:35 +02:00 committed by GitHub
parent 63adef2021
commit 2cae5f5b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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