diff --git a/packages/react-bootstrap-table2/src/body.js b/packages/react-bootstrap-table2/src/body.js index f176bbf80..96267d554 100644 --- a/packages/react-bootstrap-table2/src/body.js +++ b/packages/react-bootstrap-table2/src/body.js @@ -88,25 +88,28 @@ class Body extends React.Component { } content = data.map((row, index) => { - const key = _.get(row, keyField); - const baseRowProps = { - key, - row, - tabIndexCell, - columns, - keyField, - cellEdit, - value: key, - rowIndex: index, - visibleColumnSize, - attrs: rowEvents || {}, - ...additionalRowProps - }; - - baseRowProps.style = _.isFunction(rowStyle) ? rowStyle(row, index) : rowStyle; - baseRowProps.className = (_.isFunction(rowClasses) ? rowClasses(row, index) : rowClasses); - - return ; + try { + const key = _.get(row, keyField); + const baseRowProps = { + key, + row, + tabIndexCell, + columns, + keyField, + cellEdit, + value: key, + rowIndex: index, + visibleColumnSize, + attrs: rowEvents || {}, + ...additionalRowProps + }; + + baseRowProps.style = _.isFunction(rowStyle) ? rowStyle(row, index) : rowStyle; + baseRowProps.className = (_.isFunction(rowClasses) ? rowClasses(row, index) : rowClasses); + + return ; + } catch (error) {} + }); }