fix acceleration history paging w/ undefined total
This commit is contained in:
		
							parent
							
								
									676abf58fd
								
							
						
					
					
						commit
						ea08c0c950
					
				| @ -165,7 +165,7 @@ export class ServicesApiServices { | |||||||
|       return this.getAccelerationHistoryObserveResponse$({...params, page}).pipe( |       return this.getAccelerationHistoryObserveResponse$({...params, page}).pipe( | ||||||
|         map((response) => ({ |         map((response) => ({ | ||||||
|           page, |           page, | ||||||
|           total: parseInt(response.headers.get('X-Total-Count'), 10), |           total: parseInt(response.headers.get('X-Total-Count'), 10) || 0, | ||||||
|           accelerations: accelerations.concat(response.body || []), |           accelerations: accelerations.concat(response.body || []), | ||||||
|         })), |         })), | ||||||
|         switchMap(({page, total, accelerations}) => { |         switchMap(({page, total, accelerations}) => { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user