Skip to content

Commit

Permalink
Replace use of i for column index which is no longer passed in (adazz…
Browse files Browse the repository at this point in the history
…le#1344)

This was part of the cause of adazzle#1343
  • Loading branch information
mungojam authored and rossjp committed Dec 14, 2018
1 parent adc484b commit 337937a
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 337937a

Please sign in to comment.