diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-08-25 17:36:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 17:36:35 +0200 |
commit | 2cae5f5b8d4d0702fe9835a0ce2782f238755d0c (patch) | |
tree | de8ca830bb26606dc159e289b9bf7d68f75bca46 /app | |
parent | 63adef2021b05f282c5a0c6ba25f99e093620e88 (diff) |
Fix “Filter this post” potentially listing deleted filters (#19051)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/reducers/filters.js | 2 |
1 files changed, 1 insertions, 1 deletions
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: |