diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 65ceeb8873..32b622c949 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -1659,7 +1659,7 @@ export default { } children.forEach(child => { - if (child.dynamicChildren && child.dynamicChildren.length) + if (child.dynamicChildren && child.children instanceof Array) cols = [...cols, ...child.children]; else if (child.type.name === 'column') cols.push(child);