Skip to content

Commit 072532e

Browse files
authored
Merge pull request Expensify#60953 from nkdengineer/fix/60679
Expense Navigation after refreshing transaction thread
2 parents d391099 + 0093123 commit 072532e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/pages/home/ReportScreen.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,14 @@ function ReportScreen({route, navigation}: ReportScreenProps) {
334334
Navigation.goBack(backTo as Route, {shouldPopToTop: true});
335335
return;
336336
}
337+
338+
if (report?.parentReportID && !isMoneyRequestReportPendingDeletion(report?.parentReportID)) {
339+
Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(report?.parentReportID), {shouldPopToTop: true});
340+
return;
341+
}
342+
337343
Navigation.goBack(undefined, {shouldPopToTop: true});
338-
}, [isInNarrowPaneModal, backTo]);
344+
}, [isInNarrowPaneModal, backTo, report?.parentReportID]);
339345

340346
let headerView = (
341347
<HeaderView

0 commit comments

Comments
 (0)