We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd60465 commit d933f3eCopy full SHA for d933f3e
components/_util/props-util/index.js
@@ -366,7 +366,7 @@ export function filterEmpty(children = []) {
366
children.forEach(child => {
367
if (Array.isArray(child)) {
368
res.push(...child);
369
- } else if (child.type === Fragment) {
+ } else if (child && child.type === Fragment) {
370
res.push(...child.children);
371
} else {
372
res.push(child);
0 commit comments