diff --git a/src/routes/app/projects/[id]-[slug]/+page.svelte b/src/routes/app/projects/[id]-[slug]/+page.svelte
index 3805d57a2..5c68bbeef 100644
--- a/src/routes/app/projects/[id]-[slug]/+page.svelte
+++ b/src/routes/app/projects/[id]-[slug]/+page.svelte
@@ -36,13 +36,15 @@
{#await documents}
Loading project documents…
{:then projectItems}
- {#each projectItems.results as { document }}
- {#if typeof document !== "number"}
-
- {/if}
- {:else}
- This project has no documents.
- {/each}
+
+ {#each projectItems.results as { document }}
+ {#if typeof document !== "number"}
+
+ {/if}
+ {:else}
+ This project has no documents.
+ {/each}
+
{:catch}
Error loading project documents
{/await}