[accelerator] remove query params for acceleration list

This commit is contained in:
nymkappa committed 2024-03-08 10:33:23 +09:00
1 parent 1d877a746f
commit 1d56bfa9b8
2 files changed
+2 -2

No files matched your search

@@ -44,7 +44,7 @@ export class AccelerationsListComponent implements OnInit {
this.accelerationList$ = this.pageSubject.pipe(
switchMap((page) => {
const accelerationObservable$ = this.accelerations$ || (this.pending ? this.servicesApiService.getAccelerations$() : this.servicesApiService.getAccelerationHistoryObserveResponse$({ timeframe: '1y', page: page }));
const accelerationObservable$ = this.accelerations$ || (this.pending ? this.servicesApiService.getAccelerations$() : this.servicesApiService.getAccelerationHistoryObserveResponse$({ page: page }));
return accelerationObservable$.pipe(
switchMap(response => {
let accelerations = response;
@@ -60,7 +60,7 @@ export class AcceleratorDashboardComponent implements OnInit {
this.accelerations$ = this.stateService.chainTip$.pipe(
distinctUntilChanged(),
switchMap(() => {
return this.serviceApiServices.getAccelerationHistory$({ timeframe: '3m', page: 1, pageLength: 100}).pipe(
return this.serviceApiServices.getAccelerationHistory$({}).pipe(
catchError(() => {
return of([]);
}),