fix acceleration history paging w/ undefined total

This commit is contained in:
Mononaut 2024-09-27 16:09:12 +00:00
parent 676abf58fd
commit ea08c0c950
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -165,7 +165,7 @@ export class ServicesApiServices {
return this.getAccelerationHistoryObserveResponse$({...params, page}).pipe(
map((response) => ({
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 || []),
})),
switchMap(({page, total, accelerations}) => {