Commit e466b322 authored by xifeiwu's avatar xifeiwu Committed by cinwell.li

fix the case parameter node is null (#9125)

parent e86cb785
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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment