Skip to content

Commit

Permalink
Ensure that Page Size and Page are always integers
Browse files Browse the repository at this point in the history
  • Loading branch information
mabentley85 committed May 30, 2020
1 parent 8ab2b2c commit eaeb303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Pagination/Pagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
const dispatch = createEventDispatcher();
afterUpdate(() => {
dispatch('update', {pageSize, page});
dispatch('update', {pageSize: parseInt(pageSize), page: parseInt(page)});
});
$: totalPages = Math.max(Math.ceil(totalItems / pageSize), 1);
Expand Down

0 comments on commit eaeb303

Please sign in to comment.