Skip to content

Commit e6b2a7c

Browse files
committed
formatting
1 parent 4387606 commit e6b2a7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/plugins/addPagination.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const createPageStore = ({
3333
});
3434
};
3535
const setPageSize = (newPageSize: number) => updatePageSize(() => newPageSize);
36-
36+
3737
const pageIndex = writable(initialPageIndex);
3838

3939
let pageCount;
@@ -50,10 +50,10 @@ export const createPageStore = ({
5050

5151
const serverItemsCount = writable(0);
5252
if (serverSide) {
53-
pageCount = derived([pageSize, serverItemsCount], calcPageCount)
53+
pageCount = derived([pageSize, serverItemsCount], calcPageCount);
5454
} else {
55-
const itemCount = derived(items, ($items) => $items.length)
56-
pageCount = derived([pageSize, itemCount], calcPageCount)
55+
const itemCount = derived(items, ($items) => $items.length);
56+
pageCount = derived([pageSize, itemCount], calcPageCount);
5757
}
5858

5959
const hasPreviousPage = derived(pageIndex, ($pageIndex) => {

0 commit comments

Comments
 (0)