diff --git a/src/lib/components/viewer/PaginationToolbar.svelte b/src/lib/components/viewer/PaginationToolbar.svelte index 274626a27..640304b33 100644 --- a/src/lib/components/viewer/PaginationToolbar.svelte +++ b/src/lib/components/viewer/PaginationToolbar.svelte @@ -31,7 +31,6 @@ } from "$lib/components/viewer/ViewerContext.svelte"; const documentStore = getDocument(); - $: document = $documentStore; const embed = isEmbedded(); const currentMode = getCurrentMode(); const currentPage = getCurrentPage(); @@ -43,6 +42,7 @@ TWO_ROWS: width <= remToPx(34), }; + $: document = $documentStore; $: sections = document.sections ?? []; $: totalPages = document.page_count; $: showPDF = ["document", "annotating", "redacting"].includes($currentMode); diff --git a/src/lib/components/viewer/Search.svelte b/src/lib/components/viewer/Search.svelte index 3d88c13ee..f4a8ceae0 100644 --- a/src/lib/components/viewer/Search.svelte +++ b/src/lib/components/viewer/Search.svelte @@ -5,9 +5,9 @@ Assumes it's a child of a ViewerContext