Skip to content

Commit

Permalink
Fix notification filter bar incorrectly filtering gaps (mastodon#14808)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and thenameisnigel-old committed Sep 18, 2020
1 parent 586ffeb commit beb6b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/notifications/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => ({
Expand Down

0 comments on commit beb6b11

Please sign in to comment.