mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 04:06:17 +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;
|
||||
}
|
||||
|
||||
page = parseInt(page, 10) || undefined;
|
||||
if (page) {
|
||||
const invalidPagination = page < 1 || page > pageCount;
|
||||
if (invalidPagination) {
|
||||
|
||||
Reference in New Issue
Block a user