fix(client/user-notifications): load last page

hasMoreItems has to be called before bumping the current page in order
to work accordingly.
This commit is contained in:
kontrollanten 2024-09-12 13:11:54 +02:00
parent 7b9adce5d0
commit 52aba7a1cb
1 changed files with 1 additions and 2 deletions

View File

@ -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()
}
}