fix the case parameter node is null (#9125)

pull/9130/head
xifeiwu 2018-01-04 15:46:55 +08:00 committed by cinwell.li
parent e86cb785b3
commit e466b32214
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { hasOwn } from 'element-ui/src/utils/util';
export function isVNode(node) {
return typeof node === 'object' && hasOwn(node, 'componentOptions');
return node !== null && typeof node === 'object' && hasOwn(node, 'componentOptions');
};
export function getFirstComponentChild(children) {