Skip to content

Commit f16bea8

Browse files
committed
fix:64893: App background changes to Inbox after opening report details page on Reports page
1 parent 6b3047f commit f16bea8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/MoneyRequestReportView/MoneyRequestReportTransactionsNavigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ function MoneyRequestReportTransactionsNavigation({currentReportID}: MoneyReques
3232
return {prevReportID: prevID, nextReportID: nextID};
3333
}, [currentReportID, reportIDsList]);
3434

35-
const backTo = Navigation.getActiveRoute();
36-
3735
/**
3836
* We clear the sibling transactionThreadIDs when unmounting this component
3937
* only when the mount actually goes to a different SCREEN (and not a different version of the same SCREEN)
@@ -57,10 +55,12 @@ function MoneyRequestReportTransactionsNavigation({currentReportID}: MoneyReques
5755
isPrevButtonDisabled={!prevReportID}
5856
isNextButtonDisabled={!nextReportID}
5957
onNext={(e) => {
58+
const backTo = Navigation.getActiveRoute();
6059
e?.preventDefault();
6160
Navigation.navigate(ROUTES.SEARCH_REPORT.getRoute({reportID: nextReportID, backTo}), {forceReplace: true});
6261
}}
6362
onPrevious={(e) => {
63+
const backTo = Navigation.getActiveRoute();
6464
e?.preventDefault();
6565
Navigation.navigate(ROUTES.SEARCH_REPORT.getRoute({reportID: prevReportID, backTo}), {forceReplace: true});
6666
}}

0 commit comments

Comments
 (0)