Skip to content

Commit

Permalink
[feature #162171029] increase articles count limit to 20 in paginatio…
Browse files Browse the repository at this point in the history
…n file
  • Loading branch information
pitaz committed Dec 17, 2018
1 parent 0f85d64 commit c019d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/pagination.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const pagination = (page, size, count) => {
let currentPage = Math.abs(Number(page)) || 1;
let offset = 0;
let limit = 2;
let limit = 20;
const sizeNo = Number(size);
if (!Number.isNaN(sizeNo) && sizeNo > 0) limit = size;
const totalPages = Math.ceil(count / limit);
Expand Down

0 comments on commit c019d8d

Please sign in to comment.