Skip to content

Commit

Permalink
updating attachment download url
Browse files Browse the repository at this point in the history
  • Loading branch information
JediWattson committed Dec 11, 2022
1 parent f1dfd4c commit e46566d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AttachmentCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class AttachmentCarousel extends React.Component {
getAttachment(attachmentItem) {
const sourceURL = _.get(attachmentItem, 'sourceURL', '');
const file = _.get(attachmentItem, 'file', {name: ''});
this.props.onNavigate({sourceURL: addEncryptedAuthTokenToURL(sourceURL), file});

return {
sourceURL,
file,
Expand Down Expand Up @@ -146,7 +148,6 @@ class AttachmentCarousel extends React.Component {
Report.loadMoreActions(this.props.report.reportID, this.props.reportActions, this.props.report.isLoadingMoreReportActions);
}
const {sourceURL, file} = this.getAttachment(attachments[nextIndex]);
this.props.onNavigate({sourceURL, file});
return {
page: nextIndex,
sourceURL,
Expand Down

0 comments on commit e46566d

Please sign in to comment.