From: Claire Date: Thu, 25 Aug 2022 15:36:35 +0000 (+0200) Subject: Fix “Filter this post” potentially listing deleted filters (#19051) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=beef5736499d2ffb226f9e9d12c1967e755d2b30;p=mastodon.git Fix “Filter this post” potentially listing deleted filters (#19051) --- diff --git a/app/javascript/mastodon/reducers/filters.js b/app/javascript/mastodon/reducers/filters.js index cc1d3349c..f4f97cd3a 100644 --- a/app/javascript/mastodon/reducers/filters.js +++ b/app/javascript/mastodon/reducers/filters.js @@ -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: