We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9b7f1 commit 5becce1Copy full SHA for 5becce1
packages/ember/addon/instance-initializers/sentry-performance.ts
@@ -22,7 +22,7 @@ export function initialize(appInstance: ApplicationInstance): void {
22
23
function getTransitionInformation(transition: any, router: any) {
24
const fromRoute = transition?.from?.name;
25
- const toRoute = transition ? transition.to.name : router.currentRouteName;
+ const toRoute = transition && transition.to ? transition.to.name : router.currentRouteName;
26
return {
27
fromRoute,
28
toRoute,
0 commit comments