Skip to content

[BUG] Infinite/incorrect pagination skip calculation - #273

Merged
omkarhole merged 1 commit into
omkarhole:mainfrom
Aditya8369:248
Jun 2, 2026
Merged

[BUG] Infinite/incorrect pagination skip calculation#273
omkarhole merged 1 commit into
omkarhole:mainfrom
Aditya8369:248

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Fixed infinite/incorrect pagination skip calculation in frontend/src/components/ReferralList.jsx.

Removed nextPage / nextSearch indirection.
fetchReferrals() now sends explicit params.page (and params.search when present) to /api/referrals.
Local pagination page is now set strictly from response.data.pagination.page.
Next/Previous no longer drift from server pagination.
Search/filter submit resets pagination deterministically to page 1.
Build verification: cd frontend && npm run build ✅ succeeded.

closes #248

@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the omkarhole's projects Team on Vercel.

A member of the Team first needs to authorize it.

@omkarhole
omkarhole merged commit 1a142eb into omkarhole:main Jun 2, 2026
0 of 2 checks passed
@omkarhole omkarhole added NSOC'26 Issues for the NSOC 2026 program level3 10 points labels Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level3 10 points NSOC'26 Issues for the NSOC 2026 program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Infinite/incorrect pagination skip calculation

2 participants