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
5454 if ( startTransactionOnPageLoad && isPageLoadNavigation ) {
5555 startTransaction ( {
5656 // 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 ,
5858 op : 'pageload' ,
5959 tags,
6060 data,
@@ -64,7 +64,7 @@ export function vueRouterInstrumentation(router: VueRouter): VueRouterInstrument
6464 if ( startTransactionOnLocationChange && ! isPageLoadNavigation ) {
6565 startTransaction ( {
6666 // 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 ,
6868 op : 'navigation' ,
6969 tags,
7070 data,
You can’t perform that action at this time.
0 commit comments