Skip to content

Commit

Permalink
pass key from CellMeasurer to div to ensure all elements have a valid…
Browse files Browse the repository at this point in the history
… key
  • Loading branch information
jdrews committed Jun 4, 2022
1 parent e4e923b commit 29f263f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/LogViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class LogViewer extends React.Component {
}

rowRenderer = ({ index, isScrolling, key, style, ...rest }) => (
<CellMeasurer {...rest} rowIndex={index} columnIndex={0} cache={this.cache}>
<CellMeasurer {...rest} rowIndex={index} columnIndex={0} cache={this.cache} key={key}>
{({registerChild}) => (
<div
ref={registerChild}
Expand Down

0 comments on commit 29f263f

Please sign in to comment.