about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-08-25 17:36:35 +0200
committerGitHub <noreply@github.com>2022-08-25 17:36:35 +0200
commit2cae5f5b8d4d0702fe9835a0ce2782f238755d0c (patch)
treede8ca830bb26606dc159e289b9bf7d68f75bca46 /app
parent63adef2021b05f282c5a0c6ba25f99e093620e88 (diff)
Fix “Filter this post” potentially listing deleted filters (#19051)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/reducers/filters.js2
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: