From 0d8d462502df7c3703fc1ebaf3c5fc2ef3ec0513 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 14 Nov 2022 21:31:26 +0100 Subject: [PATCH] fix: add whitespace --- src/lib/components/pagination.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/pagination.svelte b/src/lib/components/pagination.svelte index f82250018..166bdf03e 100644 --- a/src/lib/components/pagination.svelte +++ b/src/lib/components/pagination.svelte @@ -6,6 +6,7 @@ export let offset: number; export let path: string; export let hidePages = false; + $: totalPages = Math.ceil(sum / limit); $: currentPage = Math.floor(offset / limit + 1); $: pages = pagination(currentPage, totalPages);