Skip to content

Commit

Permalink
Merge pull request Expensify#41572 from gijoe0295/fix/41091
Browse files Browse the repository at this point in the history
fix: deleted report preview link in thread is incorrect
  • Loading branch information
techievivek authored May 7, 2024
2 parents 935efd9 + 5d75bcd commit a04843e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,10 @@ const ContextMenuActions: ContextMenuAction[] = [
return type === CONST.CONTEXT_MENU_TYPES.REPORT_ACTION && !isAttachmentTarget && !ReportActionsUtils.isMessageDeleted(reportAction);
},
onPress: (closePopover, {reportAction, reportID}) => {
const originalReportID = ReportUtils.getOriginalReportID(reportID, reportAction);
Environment.getEnvironmentURL().then((environmentURL) => {
const reportActionID = reportAction?.reportActionID;
Clipboard.setString(`${environmentURL}/r/${reportID}/${reportActionID}`);
Clipboard.setString(`${environmentURL}/r/${originalReportID}/${reportActionID}`);
});
hideContextMenu(true, ReportActionComposeFocusManager.focus);
},
Expand Down

0 comments on commit a04843e

Please sign in to comment.