Browse Source

Fix notification filter bar incorrectly filtering gaps (#14808)

closed-social-v3
ThibG 4 years ago
committed by GitHub
parent
commit
aab867b0e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/notifications/index.js

+ 1
- 1
app/javascript/mastodon/features/notifications/index.js View 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 => ({

Loading…
Cancel
Save