[Glitch] Fix notification filter bar incorrectly filtering gaps

Port cfb35b767c to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
lolsob-rspec
ThibG 2020-09-16 20:17:16 +02:00 committed by Thibaut Girka
parent fcb0fe3411
commit 1a77634084
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,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 => ({