Skip to content

Commit b6d386b

Browse files
committed
fix getReadlChild types
1 parent 9421bd4 commit b6d386b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/vdom/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ function applyNS (vnode, ns) {
6464

6565
// in case the child is also an abstract component, e.g. <transition-control>
6666
// we want to recrusively retrieve the real component to be rendered
67-
export function getRealChild (vnode) {
67+
export function getRealChild (vnode: ?VNode): ?VNode {
6868
const compOptions = vnode && vnode.componentOptions
6969
if (compOptions && compOptions.Ctor.options._abstract) {
70-
return getRealChild(compOptions.propsData.child)
70+
return getRealChild(compOptions.propsData && compOptions.propsData.child)
7171
} else {
7272
return vnode
7373
}

0 commit comments

Comments
 (0)