Fix attachment undefined references
This commit is contained in:
parent
680cf5803d
commit
0c44f58466
|
@ -80,6 +80,7 @@
|
|||
bind:this={anchor}
|
||||
>
|
||||
{#each value || [] as attachment}
|
||||
{#if attachment}
|
||||
{#if isImage(attachment.extension)}
|
||||
<img src={attachment.url} alt={attachment.extension} />
|
||||
{:else}
|
||||
|
@ -87,6 +88,7 @@
|
|||
{attachment.extension}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue