about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-09-16 20:17:16 +0200
committerGitHub <noreply@github.com>2020-09-16 20:17:16 +0200
commitaab867b0e8119ecee78dabe8007f3c033e734b6d (patch)
tree9250d608d3a8ac76bbb56b7c641ffe17ec687b73 /app
parent5d3c8baa9a0aa42c68cf0485c187652a435891ab (diff)
Fix notification filter bar incorrectly filtering gaps (#14808)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/notifications/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/notifications/index.js b/app/javascript/mastodon/features/notifications/index.js
index d16a0f33a..6ff376780 100644
--- a/app/javascript/mastodon/features/notifications/index.js
+++ b/app/javascript/mastodon/features/notifications/index.js
@@ -32,7 +32,7 @@ const getNotifications = createSelector([
     // we need to turn it off for FilterBar in order not to block ourselves from seeing a specific category
     return notifications.filterNot(item => item !== null && excludedTypes.includes(item.get('type')));
   }
-  return notifications.filter(item => item !== null && allowedType === item.get('type'));
+  return notifications.filter(item => item === null || allowedType === item.get('type'));
 });
 
 const mapStateToProps = state => ({