Skip to content

Commit

Permalink
Fix document list on project page
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Apr 23, 2024
1 parent 8d6c801 commit ea3469b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/routes/app/projects/[id]-[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
{#await documents}
<Empty icon={Hourglass24}>Loading project documents…</Empty>
{:then projectItems}
{#each projectItems.results as { document }}
{#if typeof document !== "number"}
<DocumentListItem {document} />
{/if}
{:else}
<Empty icon={File24}>This project has no documents.</Empty>
{/each}
<div>
{#each projectItems.results as { document }}
{#if typeof document !== "number"}
<DocumentListItem {document} />
{/if}
{:else}
<Empty icon={File24}>This project has no documents.</Empty>
{/each}
</div>
{:catch}
<Error>Error loading project documents</Error>
{/await}
Expand Down

0 comments on commit ea3469b

Please sign in to comment.