From 01baa5a17453b031fb32973fc4d960289bfc0766 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Mon, 17 Feb 2025 14:07:50 -0500 Subject: [PATCH] do in subscription --- client/stillbox/src/app/calls/calls.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/stillbox/src/app/calls/calls.component.ts b/client/stillbox/src/app/calls/calls.component.ts index d71c317..030180f 100644 --- a/client/stillbox/src/app/calls/calls.component.ts +++ b/client/stillbox/src/app/calls/calls.component.ts @@ -189,9 +189,6 @@ export class CallsComponent { setPage(p: PageEvent, force?: boolean) { this.selection.clear(); this.curPage = p; - if (this.callsTable) { - this.callsTable.nativeElement.scrollIntoView(true); - } if (p && p!.pageSize != this.perPage) { this.perPage = p!.pageSize; this.prefsSvc.set('callsPerPage', p!.pageSize); @@ -261,6 +258,9 @@ export class CallsComponent { this.isLoading = false; this.count = calls.count; this.currentSet = calls.calls; + if (this.callsTable) { + this.callsTable.nativeElement.scrollIntoView(true); + } this.callsResult.next( this.currentSet ? this.currentSet.slice(