diff --git a/helpers/api/pagination.js b/helpers/api/pagination.js index 671eda5..5ca0c3a 100644 --- a/helpers/api/pagination.js +++ b/helpers/api/pagination.js @@ -1,5 +1,7 @@ +export const defaultPerPage = 20 + export class PaginatedList { - constructor({ list, perPage }) { + constructor({ list, perPage = defaultPerPage }) { this.list = list this.perPage = perPage }