diff --git a/src/pages/viewer/controls/Paginator.svelte b/src/pages/viewer/controls/Paginator.svelte index 1addbc22e..1c4355ef1 100644 --- a/src/pages/viewer/controls/Paginator.svelte +++ b/src/pages/viewer/controls/Paginator.svelte @@ -4,10 +4,10 @@ import Paginator from "../../../common/Paginator.svelte"; // @ts-expect-error - $: mode = doc.mode; + $: mode = $doc.mode; - $: page = doc.visiblePageNumber; - $: totalPages = viewer.document?.pageCount; + $: page = $doc.visiblePageNumber; + $: totalPages = $viewer.document?.pageCount; $: has_next = page < totalPages; $: has_previous = page > 1; $: {