]> cat aescling's git repositories - mastodon.git/commitdiff
Fix notification filter bar incorrectly filtering gaps (#14808)
authorThibG <thib@sitedethib.com>
Wed, 16 Sep 2020 18:17:16 +0000 (20:17 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 18:17:16 +0000 (20:17 +0200)
app/javascript/mastodon/features/notifications/index.js

index d16a0f33a4e1fb984ac649738533d14a43af3090..6ff3767803d89a35bfc3cb26a7189a104b746b36 100644 (file)
@@ -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 => ({