Skip to content

Commit

Permalink
Merge pull request #15904 from Expensify/jasper-fixLeftoverReview15897
Browse files Browse the repository at this point in the history
[NO QA] Fix leftover review comments on App/pull/15897
  • Loading branch information
jasperhuangg authored Mar 14, 2023
2 parents a1ca415 + 8088945 commit 2546f04
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ const AnchorRenderer = (props) => {
// If we are handling a New Expensify link then we will assume this should be opened by the app internally. This ensures that the links are opened internally via react-navigation
// instead of in a new tab or with a page refresh (which is the default behavior of an anchor tag)
if (internalNewExpensifyPath) {
if (attrPath.indexOf('r/') === 0) {
// If we're navigating to a report, we need to call OpenReport here since componentDidMount doesn't get called
// when we're deeplinking to a report from a different report (it never unmounts).
if (attrPath.startsWith('r/')) {
const reportID = attrPath.split('/')[1];
Report.openReport(reportID);
}
Expand Down

0 comments on commit 2546f04

Please sign in to comment.