diff --git a/src/lib/components/paginator/paginatorUtils.ts b/src/lib/components/paginator/paginatorUtils.ts index 58375dd..23d9dac 100644 --- a/src/lib/components/paginator/paginatorUtils.ts +++ b/src/lib/components/paginator/paginatorUtils.ts @@ -15,7 +15,9 @@ export function getPaginatorPages({ const maxLinksLength = 7 const linksAroundActive = 2 const totalPages = Math.ceil(totalCount / pageSize) - const daco = range(1, totalPages + 1).reduce<(number | typeof Divider)[]>((acc, link) => { + const shownPages = range(1, totalPages + 1).reduce< + (number | typeof Divider)[] + >((acc, link) => { const isFirst = link === 1 const isLast = link === totalPages const isPageOnStart = page <= 3 && link < maxLinksLength @@ -36,7 +38,7 @@ export function getPaginatorPages({ return [...acc, link] }, []) - return daco + return shownPages } export function createHref(