We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34b65ec + d8b25a7 commit a3c591bCopy full SHA for a3c591b
src/libs/Navigation/helpers/linkTo/index.ts
@@ -62,7 +62,7 @@ function isNavigatingToReportWithSameReportID(currentRoute: NavigationPartialRou
62
const currentParams = currentRoute.params as ReportsSplitNavigatorParamList[typeof SCREENS.REPORT];
63
const newParams = newRoute?.params as ReportsSplitNavigatorParamList[typeof SCREENS.REPORT];
64
65
- return currentParams.reportID === newParams.reportID;
+ return currentParams?.reportID === newParams?.reportID;
66
}
67
68
export default function linkTo(navigation: NavigationContainerRef<RootNavigatorParamList> | null, path: Route, options?: LinkToOptions) {
0 commit comments