Skip to content

Commit

Permalink
Merge pull request #37201 from software-mansion-labs/fix/hasRouteMatc…
Browse files Browse the repository at this point in the history
…hingPolicyID

Fix hasRouteMatchingPolicyID
  • Loading branch information
Hayata Suenaga authored Feb 26, 2024
2 parents 88a3ffe + 1401bc1 commit 6472264
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<CentralPaneName>, policyID?: string) {
if (!route.params) {
if (!route?.params) {
return false;
}

Expand Down

0 comments on commit 6472264

Please sign in to comment.