fix: missing page parseInt

This commit is contained in:
Julian Lam
2026-03-11 14:35:21 -04:00
parent 05967f49bc
commit 9978af5978

View File

@@ -483,6 +483,7 @@ Helpers.generateCollection = async ({ set, method, count, page, perPage, url })
paginate = false;
}
page = parseInt(page, 10) || undefined;
if (page) {
const invalidPagination = page < 1 || page > pageCount;
if (invalidPagination) {