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 9421bd4 commit b6d386bCopy full SHA for b6d386b
src/core/vdom/helpers.js
@@ -64,10 +64,10 @@ function applyNS (vnode, ns) {
64
65
// in case the child is also an abstract component, e.g. <transition-control>
66
// we want to recrusively retrieve the real component to be rendered
67
-export function getRealChild (vnode) {
+export function getRealChild (vnode: ?VNode): ?VNode {
68
const compOptions = vnode && vnode.componentOptions
69
if (compOptions && compOptions.Ctor.options._abstract) {
70
- return getRealChild(compOptions.propsData.child)
+ return getRealChild(compOptions.propsData && compOptions.propsData.child)
71
} else {
72
return vnode
73
}
0 commit comments