fix: table column null error, close #5888

This commit is contained in:
tangjinzhou 2022-08-12 16:19:32 +08:00
parent dd60465373
commit d933f3edd5

View File

@ -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);