From 52aba7a1cb9347f9f12c2043b0e5e75563790ba4 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:11:54 +0200 Subject: [PATCH] fix(client/user-notifications): load last page hasMoreItems has to be called before bumping the current page in order to work accordingly. --- .../standalone-notifications/user-notifications.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/app/shared/standalone-notifications/user-notifications.component.ts b/client/src/app/shared/standalone-notifications/user-notifications.component.ts index a3f25fcc0..5da6f0904 100644 --- a/client/src/app/shared/standalone-notifications/user-notifications.component.ts +++ b/client/src/app/shared/standalone-notifications/user-notifications.component.ts @@ -80,9 +80,8 @@ export class UserNotificationsComponent implements OnInit { onNearOfBottom () { if (this.infiniteScroll === false) return - this.componentPagination.currentPage++ - if (hasMoreItems(this.componentPagination)) { + this.componentPagination.currentPage++ this.loadNotifications() } }