Add default perPag amount to PaginatedList

This commit is contained in:
Sam Carlton 2022-05-19 10:33:50 -05:00
parent ae0be1b78f
commit a23b0c02db

View file

@ -1,5 +1,7 @@
export const defaultPerPage = 20
export class PaginatedList {
constructor({ list, perPage }) {
constructor({ list, perPage = defaultPerPage }) {
this.list = list
this.perPage = perPage
}