Browse Source
			
			
			Bugfix/exclude emtpy items in activities filter (#999)
			
				* Exclude empty items
* Update changelog
			
			
				pull/994/head^2
			
			
		 
		
			
				
					
						 Thomas Kaul
					
					3 years ago
						Thomas Kaul
					
					3 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
11 additions and 
5 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
- 
					
					
					 
					libs/ui/src/lib/activities-table/activities-table.component.ts
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
			
		
	
		
			
				
					|  |  |  | - Upgraded `chart.js` from version `3.7.0` to `3.8.0` | 
			
		
	
		
			
				
					|  |  |  | - Upgraded `envalid` from version `7.2.1` to `7.3.1` | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ### Fixed | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | - Excluded empty items in the activities filter | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ## 1.156.0 - 05.06.2022 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ### Added | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -192,11 +192,13 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy { | 
			
		
	
		
			
				
					|  |  |  |     activity: OrderWithAccount, | 
			
		
	
		
			
				
					|  |  |  |     fieldValueMap: { [id: string]: Filter } = {} | 
			
		
	
		
			
				
					|  |  |  |   ): Filter[] { | 
			
		
	
		
			
				
					|  |  |  |     fieldValueMap[activity.Account?.id] = { | 
			
		
	
		
			
				
					|  |  |  |       id: activity.Account?.id, | 
			
		
	
		
			
				
					|  |  |  |       label: activity.Account?.name, | 
			
		
	
		
			
				
					|  |  |  |       type: 'ACCOUNT' | 
			
		
	
		
			
				
					|  |  |  |     }; | 
			
		
	
		
			
				
					|  |  |  |     if (activity.Account?.id) { | 
			
		
	
		
			
				
					|  |  |  |       fieldValueMap[activity.Account.id] = { | 
			
		
	
		
			
				
					|  |  |  |         id: activity.Account.id, | 
			
		
	
		
			
				
					|  |  |  |         label: activity.Account.name, | 
			
		
	
		
			
				
					|  |  |  |         type: 'ACCOUNT' | 
			
		
	
		
			
				
					|  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     fieldValueMap[activity.SymbolProfile.currency] = { | 
			
		
	
		
			
				
					|  |  |  |       id: activity.SymbolProfile.currency, | 
			
		
	
	
		
			
				
					|  |  | 
 |