apstanisic / zmaj

Zmaj is a headless CMS for managing database
https://zmaj.vercel.app
MIT License
5 stars 0 forks source link

Pagination for choices is off by one on page where current value is displayed #14

Open apstanisic opened 1 year ago

apstanisic commented 1 year ago

Example: User has post_id = 35, there are 61 total articles, 10 per page,

On first 3 pages (0-30), it will display that it has 7 pages (60 / 10 + 1), but on 4th page, it calculates that one is unavailable (currently selected), so it displays total of 60, which is 6 pages (1 less). I'm using normal ReferenceInput, so it should be react-admin bug. TODO check if react-admin has open issues, and do they consider it a bug, create reproduction, and report. I did not find issue at quick glance