diff --git a/src/lib/components/common/PDFViewer.svelte b/src/lib/components/common/PDFViewer.svelte index 23e7f5e91a..73a5d7a2f2 100644 --- a/src/lib/components/common/PDFViewer.svelte +++ b/src/lib/components/common/PDFViewer.svelte @@ -195,20 +195,18 @@
-
-
- {#if loading} -
- -
- {/if} - - {#if error} -
- {error} -
- {/if} + {#if loading} +
+
+ {:else if error} +
+ {error} +
+ {/if} + +
+
{#if !loading && !error && pdfDoc}