diff --git a/src/components/datagrid/DataGrid.js b/src/components/datagrid/DataGrid.js index c80d943a88..667b86055a 100644 --- a/src/components/datagrid/DataGrid.js +++ b/src/components/datagrid/DataGrid.js @@ -150,7 +150,7 @@ export default class DataGridComponent extends NestedArrayComponent { isEmpty(value = this.dataValue) { const isEmpty = super.isEmpty(value); - if (this.components.length) { + if (this.components?.length) { return this.components.reduce((isEmpty, component) => { return isEmpty && component.isEmpty(); }, true);