Pass colors prop into MultiGrid to cause re-renders more often
parent
208e9edced
commit
bb11ef21fc
|
@ -127,7 +127,7 @@ class TableGraph extends Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {hoveredColumnIndex, hoveredRowIndex} = this.state
|
const {hoveredColumnIndex, hoveredRowIndex} = this.state
|
||||||
const {hoverTime, tableOptions} = this.props
|
const {hoverTime, tableOptions, colors} = this.props
|
||||||
const data = this._data
|
const data = this._data
|
||||||
const columnCount = _.get(data, ['0', 'length'], 0)
|
const columnCount = _.get(data, ['0', 'length'], 0)
|
||||||
const rowCount = data.length
|
const rowCount = data.length
|
||||||
|
@ -163,6 +163,7 @@ class TableGraph extends Component {
|
||||||
hoveredColumnIndex={hoveredColumnIndex}
|
hoveredColumnIndex={hoveredColumnIndex}
|
||||||
hoveredRowIndex={hoveredRowIndex}
|
hoveredRowIndex={hoveredRowIndex}
|
||||||
hoverTime={hoverTime}
|
hoverTime={hoverTime}
|
||||||
|
colors={colors}
|
||||||
/>}
|
/>}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue