Closed LanesGood closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
osm-teams | ✅ Ready (Inspect) | Visit Preview | Jan 13, 2023 at 6:02PM (UTC) |
update: found an example with just 3 pages - this also doesn't seem to be correct:
@LanesGood I believe we don't need to add 1 to currentPage
. Could you try to change it? If it doesn't work, we can have a call to debug it together.
const pages = listPageOptions(currentPage + 1, maxPages)
@willemarcel no, that didn't seem to fix the issue
Minor style change to distinguish active page in pagination.
@willemarcel I also notice that pagination options are behaving strangely when there are only 2 pages. See below screenshot. Changing the
PAGE_INDEX_START
const to 0 didn't seem to help adjust this, though I see that we 0-indexed other examples of this pattern. Any ideas?