diff --git a/components/_util/props-util/index.js b/components/_util/props-util/index.js index 101634eea..3052e2ab6 100644 --- a/components/_util/props-util/index.js +++ b/components/_util/props-util/index.js @@ -366,7 +366,7 @@ export function filterEmpty(children = []) { children.forEach(child => { if (Array.isArray(child)) { res.push(...child); - } else if (child.type === Fragment) { + } else if (child && child.type === Fragment) { res.push(...child.children); } else { res.push(child);