diff --git a/src/libs/Navigation/linkingConfig/getMatchingCentralPaneRouteForState.ts b/src/libs/Navigation/linkingConfig/getMatchingCentralPaneRouteForState.ts index 02ad78a4c044..2391d8d2149d 100644 --- a/src/libs/Navigation/linkingConfig/getMatchingCentralPaneRouteForState.ts +++ b/src/libs/Navigation/linkingConfig/getMatchingCentralPaneRouteForState.ts @@ -35,7 +35,7 @@ const getTopMostReportIDFromRHP = (state: State): string => { // Check if the given route has a policyID equal to the id provided in the function params function hasRouteMatchingPolicyID(route: NavigationPartialRoute, policyID?: string) { - if (!route.params) { + if (!route?.params) { return false; }