File tree 1 file changed +3
-3
lines changed
packages/runtime-core/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ function getComponentTrace(): ComponentTraceStack {
89
89
recurseCount : 0
90
90
} )
91
91
}
92
- const parentInstance : ComponentInternalInstance | null = currentVNode . component !
93
- . parent
92
+ const parentInstance : ComponentInternalInstance | null =
93
+ currentVNode . component && currentVNode . component . parent
94
94
currentVNode = parentInstance && parentInstance . vnode
95
95
}
96
96
@@ -108,7 +108,7 @@ function formatTrace(trace: ComponentTraceStack): any[] {
108
108
function formatTraceEntry ( { vnode, recurseCount } : TraceEntry ) : any [ ] {
109
109
const postfix =
110
110
recurseCount > 0 ? `... (${ recurseCount } recursive calls)` : ``
111
- const isRoot = vnode . component ! . parent == null
111
+ const isRoot = vnode . component ? vnode . component . parent == null : false
112
112
const open = ` at <${ formatComponentName ( vnode . type , isRoot ) } `
113
113
const close = `>` + postfix
114
114
return vnode . props
You can’t perform that action at this time.
0 commit comments