diff --git a/src/components/table.jsx b/src/components/table.jsx
index 5574179b8..898c0360e 100644
--- a/src/components/table.jsx
+++ b/src/components/table.jsx
@@ -98,24 +98,25 @@ export default class Table extends Component {
CellRenderer: TableCell,
}
- renderBody() {
- const {tableData, rowHeight, bodyHeight, displayNumbers, displayHeader, extraProps, RowRenderer, CellRenderer} = this.props
- const rows = displayHeader ? tableData.rows.slice(1) : tableData.rows
+ renderRow = ({idx}) => {
+ const {tableData, displayNumbers, displayHeader, extraProps, RowRenderer, CellRenderer} = this.props
+ const rowIdx = displayHeader ? idx + 1 : idx;
+ return (
+
+ )
+ }
- const itemRenderer = ({idx}) => {
- const rowIdx = displayHeader ? idx + 1 : idx;
- return (
-
- )
- }
+ renderBody() {
+ const {tableData, rowHeight, bodyHeight, displayHeader} = this.props
+ const rows = displayHeader ? tableData.rows.slice(1) : tableData.rows
return (
)