Skip to content

Commit

Permalink
Replace use of i for column index which is no longer passed in (#1344)
Browse files Browse the repository at this point in the history
This was part of the cause of #1343
  • Loading branch information
mungojam authored and malonecj committed Nov 13, 2018
1 parent 2e153ae commit 5856616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-data-grid/src/Row.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Row extends React.Component {
e.preventDefault();
};

getCell = (column, i) => {
getCell = (column) => {
const CellRenderer = this.props.cellRenderer;
const { idx, cellMetaData, isScrolling, row, isSelected, scrollLeft, lastFrozenColumnIndex } = this.props;
const { key, formatter } = column;
Expand All @@ -74,7 +74,7 @@ class Row extends React.Component {
ref: (node) => {
this[key] = node;
},
value: this.getCellValue(key || i),
value: this.getCellValue(key || column.idx),
rowData: row,
isRowSelected: isSelected,
expandableOptions: this.getExpandableOptions(key),
Expand Down

0 comments on commit 5856616

Please sign in to comment.