From 7d45b806c8e5a531c4104a63d0795875ec72c719 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Tue, 8 Mar 2016 23:39:52 +0800 Subject: [PATCH] fix #319 --- src/BootstrapTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapTable.js b/src/BootstrapTable.js index 8823da2e6..0729d18a8 100644 --- a/src/BootstrapTable.js +++ b/src/BootstrapTable.js @@ -116,7 +116,7 @@ class BootstrapTable extends React.Component { } getColumnsDescription({ children }) { - return children.map((column, i) => { + return React.Children.map(children, (column, i) => { return { name: column.props.dataField, align: column.props.dataAlign,