Skip to content

Commit

Permalink
Revert "added replace for ngrok url"
Browse files Browse the repository at this point in the history
This reverts commit 7b7a5a0.
  • Loading branch information
JediWattson committed Dec 30, 2022
1 parent 2180ca4 commit c0f4c12
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/AttachmentCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import AttachmentView from '../AttachmentView';
import addEncryptedAuthTokenToURL from '../../libs/addEncryptedAuthTokenToURL';
import canUseTouchScreen from '../../libs/canUseTouchscreen';
import CONST from '../../CONST';
import Config from '../../CONFIG';
import ONYXKEYS from '../../ONYXKEYS';
import reportPropTypes from '../../pages/reportPropTypes';
import reportActionPropTypes from '../../pages/home/report/reportActionPropTypes';
Expand Down Expand Up @@ -84,12 +83,8 @@ class AttachmentCarousel extends React.Component {
* @returns {Object}
*/
getAttachment(attachmentItem) {
const sourceURL = _.get(attachmentItem, 'sourceURL', '');
const file = _.get(attachmentItem, 'file', {name: ''});
const originalSourceURL = _.get(attachmentItem, 'sourceURL', '');
const sourceURL = originalSourceURL.replace(
Config.EXPENSIFY.EXPENSIFY_URL,
Config.EXPENSIFY.URL_API_ROOT,
);
this.props.onNavigate({sourceURL: addEncryptedAuthTokenToURL(sourceURL), file});

return {
Expand Down

0 comments on commit c0f4c12

Please sign in to comment.