From e6b2a7c34b24cb1312cffac2932d46dc5b2a4ae1 Mon Sep 17 00:00:00 2001 From: blerrgh <41206759+blerrgh@users.noreply.github.com> Date: Mon, 9 Jan 2023 17:19:18 -0800 Subject: [PATCH] formatting --- src/lib/plugins/addPagination.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/plugins/addPagination.ts b/src/lib/plugins/addPagination.ts index c4fc79a..b04d61a 100644 --- a/src/lib/plugins/addPagination.ts +++ b/src/lib/plugins/addPagination.ts @@ -33,7 +33,7 @@ export const createPageStore = ({ }); }; const setPageSize = (newPageSize: number) => updatePageSize(() => newPageSize); - + const pageIndex = writable(initialPageIndex); let pageCount; @@ -50,10 +50,10 @@ export const createPageStore = ({ const serverItemsCount = writable(0); if (serverSide) { - pageCount = derived([pageSize, serverItemsCount], calcPageCount) + pageCount = derived([pageSize, serverItemsCount], calcPageCount); } else { - const itemCount = derived(items, ($items) => $items.length) - pageCount = derived([pageSize, itemCount], calcPageCount) + const itemCount = derived(items, ($items) => $items.length); + pageCount = derived([pageSize, itemCount], calcPageCount); } const hasPreviousPage = derived(pageIndex, ($pageIndex) => {