Skip to content

Commit

Permalink
fix: update currentPage, pageSize values for portal (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitij-k-osmosys authored Nov 4, 2024
1 parent 4ae9b19 commit 0abe520
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ export class NotificationsComponent implements OnInit {
});
}

// Set page size
this.pageSize = event.rows;

// Set current page
this.currentPage = Math.floor(event.first / event.rows) + 1;

// Fetch notifications and handle errors
this.notificationService
.getNotifications(variables, loginToken)
Expand Down

0 comments on commit 0abe520

Please sign in to comment.