diff --git a/src/pages/home/ReportScreen.tsx b/src/pages/home/ReportScreen.tsx index a608bc1040f0..a9ce95070382 100644 --- a/src/pages/home/ReportScreen.tsx +++ b/src/pages/home/ReportScreen.tsx @@ -204,9 +204,10 @@ function ReportScreen({route, navigation}: ReportScreenProps) { if (!lastAccessedReportID) { return; } - - Log.info(`[ReportScreen] no reportID found in params, setting it to lastAccessedReportID: ${lastAccessedReportID}`); - navigation.setParams({reportID: lastAccessedReportID}); + Navigation.isNavigationReady().then(() => { + Log.info(`[ReportScreen] no reportID found in params, setting it to lastAccessedReportID: ${lastAccessedReportID}`); + navigation.setParams({reportID: lastAccessedReportID}); + }); }, [isBetaEnabled, navigation, route]); const [personalDetails] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {canBeMissing: true});