diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-08-25 17:36:35 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-08-25 18:18:34 +0200 |
commit | 43a1bfd05d105cd371af846f06cdf5b75a1b44d3 (patch) | |
tree | 59ebddaed4f33c6a7e0dfe7166e0276b802dec8f /app/javascript/flavours/glitch | |
parent | 3ff340c7901cf0aadd001387bd9adbea05e0bb64 (diff) |
[Glitch] Fix “Filter this post” potentially listing deleted filters
Port 2cae5f5b8d4d0702fe9835a0ce2782f238755d0c to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/filters.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/filters.js b/app/javascript/flavours/glitch/reducers/filters.js index cc1d3349c..f4f97cd3a 100644 --- a/app/javascript/flavours/glitch/reducers/filters.js +++ b/app/javascript/flavours/glitch/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: |