From b6d386b07018830faa2da82176c7b1835d68a980 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 6 Jul 2016 18:35:51 -0400 Subject: [PATCH] fix getReadlChild types --- src/core/vdom/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/vdom/helpers.js b/src/core/vdom/helpers.js index 709fbb12..9e5769a5 100644 --- a/src/core/vdom/helpers.js +++ b/src/core/vdom/helpers.js @@ -64,10 +64,10 @@ function applyNS (vnode, ns) { // in case the child is also an abstract component, e.g. // we want to recrusively retrieve the real component to be rendered -export function getRealChild (vnode) { +export function getRealChild (vnode: ?VNode): ?VNode { const compOptions = vnode && vnode.componentOptions if (compOptions && compOptions.Ctor.options._abstract) { - return getRealChild(compOptions.propsData.child) + return getRealChild(compOptions.propsData && compOptions.propsData.child) } else { return vnode }