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