Skip to content

Commit

Permalink
Update src/components/AttachmentCarousel/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Martins <luacmartins@gmail.com>
  • Loading branch information
JediWattson and luacmartins authored Jan 15, 2023
1 parent f1e31af commit 27c4f08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/AttachmentCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ class AttachmentCarousel extends React.Component {
const attachments = [];
_.forEach(actions, ({originalMessage}) => {
if (originalMessage && originalMessage.html) {
const matchesIt = originalMessage.html.matchAll(CONST.REGEX.ATTACHMENT_DATA);
const matches = [...matchesIt];
const matches = [...originalMessage.html.matchAll(CONST.REGEX.ATTACHMENT_DATA];

// matchAll captured both source url and name of the attachment
if (matches.length === 2) {
Expand Down

0 comments on commit 27c4f08

Please sign in to comment.