Skip to content

Commit c2ce0e7

Browse files
mountinyOSBotify
authored andcommitted
Merge pull request #78641 from Expensify/revert-75808-paulnjs-fix/73506
(cherry picked from commit 9d16906) (cherry-picked to staging by mountiny)
1 parent 45969e5 commit c2ce0e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/actions/Link.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function openReportFromDeepLink(
320320
const lastAccessedReportID = findLastAccessedReport(false, shouldOpenOnAdminRoom(), undefined, reportID)?.reportID;
321321
if (lastAccessedReportID) {
322322
const lastAccessedReportRoute = ROUTES.REPORT_WITH_ID.getRoute(lastAccessedReportID);
323-
Navigation.navigate(lastAccessedReportRoute, {forceReplace: Navigation.getTopmostReportId() === reportID});
323+
Navigation.navigate(lastAccessedReportRoute);
324324
return;
325325
}
326326
navigateToConciergeChat(false, () => true);
@@ -343,7 +343,7 @@ function openReportFromDeepLink(
343343
// eslint-disable-next-line rulesdir/prefer-early-return
344344
callback: (report) => {
345345
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
346-
if (report?.errorFields?.notFound || report?.reportID || report === undefined) {
346+
if (report?.errorFields?.notFound || report?.reportID) {
347347
Onyx.disconnect(reportConnection);
348348
navigateHandler(report);
349349
}

0 commit comments

Comments
 (0)