← All scars

scar-006 · scar

Pagination skipped the first page of results

Fixed in a past commit: fix: pagination skipped the first page of results

mediumcaptured Oct 17from commit 863d8c9never repeated

Before and after

Before · the mistake
1return items.slice(page * size, (page + 1) * size);
After · the rule
1return items.slice((page - 1) * size, page * size);

Times it came back

This mistake has not been repeated. The rule is working.