From ed964a8e8b4b9d096ce17feeb226768fea81099d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Thom=C3=A9?= Date: Thu, 15 Apr 2021 04:28:19 -0300 Subject: [PATCH] check if message link is null --- client/components/Message/Attachments/Item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/Message/Attachments/Item.tsx b/client/components/Message/Attachments/Item.tsx index 4def65873e1dd..8042aec6a19d5 100644 --- a/client/components/Message/Attachments/Item.tsx +++ b/client/components/Message/Attachments/Item.tsx @@ -7,7 +7,7 @@ import { isFileAttachment, FileAttachment } from './Files'; import { QuoteAttachment, QuoteAttachmentProps } from './QuoteAttachment'; const isQuoteAttachment = (attachment: AttachmentProps): attachment is QuoteAttachmentProps => - 'message_link' in attachment; + 'message_link' in attachment && attachment.message_link !== null; const Item: FC<{ attachment: AttachmentProps; file?: FileProp }> = ({ attachment, file }) => { if (isFileAttachment(attachment)) {