Skip to content

Commit

Permalink
Merge pull request #40157 from tienifr/fix/40087
Browse files Browse the repository at this point in the history
fix: Blank page after returning to IOU report from thread and deleting the other request
(cherry picked from commit db9e01c)
  • Loading branch information
youssef-lr authored and OSBotify committed Apr 15, 2024
1 parent ae4cc0a commit 2f99466
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,14 @@ function ReportScreen({
}

const transactionThreadReportID = useMemo(() => ReportActionsUtils.getOneTransactionThreadReportID(report.reportID, reportActions ?? []), [report.reportID, reportActions]);

useEffect(() => {
if (!transactionThreadReportID || !route.params.reportActionID) {
return;
}
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(route.params.reportID));
}, [transactionThreadReportID, route.params.reportActionID, route.params.reportID]);

if (ReportUtils.isMoneyRequestReport(report)) {
headerView = (
<MoneyReportHeader
Expand Down

0 comments on commit 2f99466

Please sign in to comment.