{#if $paperlessQuery.isLoading}

Loading...

{:else if $paperlessQuery.error}
Error: {JSON.stringify($paperlessQuery.error, null, 2)}
{:else} {#each $paperlessQuery.data as document, i} selectPdf(i)}>

{document.archived_file_name}

Correspondent: {document.correspondent.name}

Tags: {document.tags.map((tag) => tag.name).join(", ")}

{document.document_type.name}

{/each} {/if}
{#if selectedPdfUrl} {/if}