From 372a8ac944cb68905d9c5c58360357a6126f6cfd Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 9 Apr 2021 13:36:54 +0100 Subject: [PATCH] Fix error when attachment type doesn't exist --- packages/bbui/src/Table/AttachmentRenderer.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bbui/src/Table/AttachmentRenderer.svelte b/packages/bbui/src/Table/AttachmentRenderer.svelte index 45bd97a849..96e9f7ff99 100644 --- a/packages/bbui/src/Table/AttachmentRenderer.svelte +++ b/packages/bbui/src/Table/AttachmentRenderer.svelte @@ -7,7 +7,7 @@ {#each attachments as attachment} - {#if attachment.type.startsWith('image')} + {#if attachment.type?.startsWith('image')} {attachment.extension} {:else}
{attachment.extension}