File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const createPageStore = ({
33
33
} ) ;
34
34
} ;
35
35
const setPageSize = ( newPageSize : number ) => updatePageSize ( ( ) => newPageSize ) ;
36
-
36
+
37
37
const pageIndex = writable ( initialPageIndex ) ;
38
38
39
39
let pageCount ;
@@ -50,10 +50,10 @@ export const createPageStore = ({
50
50
51
51
const serverItemsCount = writable ( 0 ) ;
52
52
if ( serverSide ) {
53
- pageCount = derived ( [ pageSize , serverItemsCount ] , calcPageCount )
53
+ pageCount = derived ( [ pageSize , serverItemsCount ] , calcPageCount ) ;
54
54
} 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 ) ;
57
57
}
58
58
59
59
const hasPreviousPage = derived ( pageIndex , ( $pageIndex ) => {
You can’t perform that action at this time.
0 commit comments