From 3a1afff09747a040a2225f1470ff091e5db4d9b9 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 19 Jul 2019 11:01:31 +0300 Subject: [PATCH] Fixed #959 - DataTable fails to render if columns are mapped and has a static column --- src/components/datatable/DataTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/datatable/DataTable.js b/src/components/datatable/DataTable.js index c5dd3234fc..5f7555ea31 100644 --- a/src/components/datatable/DataTable.js +++ b/src/components/datatable/DataTable.js @@ -620,13 +620,13 @@ export class DataTable extends Component { else { if(this.props.children instanceof Array) { for(let i = 0; i < this.props.children.length; i++) { - if(this.props.children[i].props.footer) { + if(this.props.children[i].props && this.props.children[i].props.footer) { return true; } } } else { - return this.props.children.props.footer !== null; + return this.props.children.props && this.props.children.props.footer !== null; } } }