fix: table column null error, close #5888
parent
dd60465373
commit
d933f3edd5
|
@ -366,7 +366,7 @@ export function filterEmpty(children = []) {
|
||||||
children.forEach(child => {
|
children.forEach(child => {
|
||||||
if (Array.isArray(child)) {
|
if (Array.isArray(child)) {
|
||||||
res.push(...child);
|
res.push(...child);
|
||||||
} else if (child.type === Fragment) {
|
} else if (child && child.type === Fragment) {
|
||||||
res.push(...child.children);
|
res.push(...child.children);
|
||||||
} else {
|
} else {
|
||||||
res.push(child);
|
res.push(child);
|
||||||
|
|
Loading…
Reference in New Issue