File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export function vueRouterInstrumentation(router: VueRouter): VueRouterInstrument
54
54
if ( startTransactionOnPageLoad && isPageLoadNavigation ) {
55
55
startTransaction ( {
56
56
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
57
- name : to . name . toString ( ) || to . path ,
57
+ name : ( to . name && to . name . toString ( ) ) || to . path ,
58
58
op : 'pageload' ,
59
59
tags,
60
60
data,
@@ -64,7 +64,7 @@ export function vueRouterInstrumentation(router: VueRouter): VueRouterInstrument
64
64
if ( startTransactionOnLocationChange && ! isPageLoadNavigation ) {
65
65
startTransaction ( {
66
66
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
67
- name : to . name . toString ( ) || ( to . matched [ 0 ] && to . matched [ 0 ] . path ) || to . path ,
67
+ name : ( to . name && to . name . toString ( ) ) || ( to . matched [ 0 ] && to . matched [ 0 ] . path ) || to . path ,
68
68
op : 'navigation' ,
69
69
tags,
70
70
data,
You can’t perform that action at this time.
0 commit comments