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,