Skip to content

Commit a3c591b

Browse files
authored
Merge pull request #58278 from callstack-internal/fix/57744-deep-link-check-report-id
Fix reportID condition when SSO redirect
2 parents 34b65ec + d8b25a7 commit a3c591b

File tree

1 file changed

+1
-1
lines changed
  • src/libs/Navigation/helpers/linkTo

1 file changed

+1
-1
lines changed

src/libs/Navigation/helpers/linkTo/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function isNavigatingToReportWithSameReportID(currentRoute: NavigationPartialRou
6262
const currentParams = currentRoute.params as ReportsSplitNavigatorParamList[typeof SCREENS.REPORT];
6363
const newParams = newRoute?.params as ReportsSplitNavigatorParamList[typeof SCREENS.REPORT];
6464

65-
return currentParams.reportID === newParams.reportID;
65+
return currentParams?.reportID === newParams?.reportID;
6666
}
6767

6868
export default function linkTo(navigation: NavigationContainerRef<RootNavigatorParamList> | null, path: Route, options?: LinkToOptions) {

0 commit comments

Comments
 (0)