Fixed #1323 - Dynamic columns not showing in Datatable with vue 3.1.1

pull/1340/head^2
Cagatay Civici 2021-06-11 15:12:29 +03:00
parent e21906e672
commit a478ace3fb
2 changed files with 2 additions and 2 deletions

View File

@ -1690,7 +1690,7 @@ export default {
}
children.forEach(child => {
if (child.dynamicChildren && child.children instanceof Array)
if (child.children && child.children instanceof Array)
cols = [...cols, ...child.children];
else if (child.type.name === 'Column')
cols.push(child);

View File

@ -805,7 +805,7 @@ export default {
let children = this.$slots.default();
children.forEach(child => {
if (child.dynamicChildren)
if (child.children && child.children instanceof Array)
cols = [...cols, ...child.children];
else if (child.type.name === 'Column')
cols.push(child);