fix(router): resolve and guards should be able to reject with null and undefined (#19418)
Closes #17148
This commit is contained in:

committed by
Victor Berchet

parent
ff5b050a92
commit
a9d32a3f89
@ -104,7 +104,7 @@ export function navigationCancelingError(message: string) {
|
||||
}
|
||||
|
||||
export function isNavigationCancelingError(error: Error) {
|
||||
return (error as any)[NAVIGATION_CANCELING_ERROR];
|
||||
return error && (error as any)[NAVIGATION_CANCELING_ERROR];
|
||||
}
|
||||
|
||||
// Matches the route configuration (`route`) against the actual URL (`segments`).
|
||||
|
Reference in New Issue
Block a user