[Glitch] Fix notification filter bar incorrectly filtering gaps
Port aab867b0e8 to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									d31792a2a6
								
							
						
					
					
						commit
						4586202448
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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
 |     // 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.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 => ({ | const mapStateToProps = state => ({ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue