From 147c179d062fbc9f79df11b03f70594150cb5089 Mon Sep 17 00:00:00 2001 From: truph01 Date: Wed, 11 Jun 2025 16:56:20 +0700 Subject: [PATCH] fix: Invalid deep link handling when opening a report with invalid id --- src/pages/home/ReportScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/ReportScreen.tsx b/src/pages/home/ReportScreen.tsx index 7d64ded33e7f..b24954fc62f5 100644 --- a/src/pages/home/ReportScreen.tsx +++ b/src/pages/home/ReportScreen.tsx @@ -171,7 +171,7 @@ function ReportScreen({route, navigation}: ReportScreenProps) { const reportActionID = route?.params?.reportActionID; const isValidReportActionID = reportActionID && isNumeric(reportActionID); if (reportActionID && !isValidReportActionID) { - navigation.setParams({reportActionID: ''}); + Navigation.isNavigationReady().then(() => navigation.setParams({reportActionID: ''})); } return; }