From: ThibG Date: Wed, 16 Sep 2020 18:17:16 +0000 (+0200) Subject: Fix notification filter bar incorrectly filtering gaps (#14808) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=aab867b0e8119ecee78dabe8007f3c033e734b6d;p=mastodon.git Fix notification filter bar incorrectly filtering gaps (#14808) --- 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 => ({