From 50143fb456336fd527b74417639c29e961bab78a Mon Sep 17 00:00:00 2001 From: Robert Daly Date: Mon, 16 Jan 2023 14:37:49 -0500 Subject: [PATCH] Update src/components/AttachmentCarousel/index.js Co-authored-by: Carlos Martins --- src/components/AttachmentCarousel/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AttachmentCarousel/index.js b/src/components/AttachmentCarousel/index.js index 560995ec2985..ec7a980c25cc 100644 --- a/src/components/AttachmentCarousel/index.js +++ b/src/components/AttachmentCarousel/index.js @@ -112,7 +112,9 @@ class AttachmentCarousel extends React.Component { */ const attachments = []; _.forEach(actions, ({originalMessage}) => { - if (!originalMessage || !originalMessage.html) { return; } + if (!originalMessage || !originalMessage.html) { + return; + } const matches = [...originalMessage.html.matchAll(CONST.REGEX.ATTACHMENT_DATA)]; // matchAll captured both source url and name of the attachment