mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 06:56:18 +02:00
fix: missing page parseInt
This commit is contained in:
@@ -483,6 +483,7 @@ Helpers.generateCollection = async ({ set, method, count, page, perPage, url })
|
|||||||
paginate = false;
|
paginate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
page = parseInt(page, 10) || undefined;
|
||||||
if (page) {
|
if (page) {
|
||||||
const invalidPagination = page < 1 || page > pageCount;
|
const invalidPagination = page < 1 || page > pageCount;
|
||||||
if (invalidPagination) {
|
if (invalidPagination) {
|
||||||
|
|||||||
Reference in New Issue
Block a user