From 97ae755783d5511fdc89cd4fb850368eadd0ab29 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 6 Dec 2024 18:51:42 +0530 Subject: [PATCH] fix: attachments check --- .../dashboard/components-next/message/bubbles/Base.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/message/bubbles/Base.vue b/app/javascript/dashboard/components-next/message/bubbles/Base.vue index ee8faf71d..afa12905c 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Base.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Base.vue @@ -54,7 +54,7 @@ const previewMessage = computed(() => { const { content, attachments } = inReplyTo; if (content) return content; - if (attachments.length) { + if (attachments?.length) { const [{ fileType } = {}] = inReplyTo.attachments; return t(`CHAT_LIST.ATTACHMENTS.${fileType}.CONTENT`); }