Skip to content

Commit db9e01c

Browse files
authored
Merge pull request #40157 from tienifr/fix/40087
fix: Blank page after returning to IOU report from thread and deleting the other request
2 parents 5602b63 + fd337b9 commit db9e01c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pages/home/ReportScreen.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,14 @@ function ReportScreen({
335335
}
336336

337337
const transactionThreadReportID = useMemo(() => ReportActionsUtils.getOneTransactionThreadReportID(report.reportID, reportActions ?? []), [report.reportID, reportActions]);
338+
339+
useEffect(() => {
340+
if (!transactionThreadReportID || !route.params.reportActionID) {
341+
return;
342+
}
343+
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(route.params.reportID));
344+
}, [transactionThreadReportID, route.params.reportActionID, route.params.reportID]);
345+
338346
if (ReportUtils.isMoneyRequestReport(report)) {
339347
headerView = (
340348
<MoneyReportHeader

0 commit comments

Comments
 (0)