From 17fa241f6e756d63639fb9371a907a067ce7d0ff Mon Sep 17 00:00:00 2001 From: lorretheboy Date: Tue, 21 Oct 2025 11:17:45 +0800 Subject: [PATCH] fix: infinite loading issue --- src/pages/home/ReportScreen.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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});