Pass colors prop into MultiGrid to cause re-renders more often

pull/10616/head
Alex P 2018-03-16 10:42:12 -07:00
parent 208e9edced
commit bb11ef21fc
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class TableGraph extends Component {
render() {
const {hoveredColumnIndex, hoveredRowIndex} = this.state
const {hoverTime, tableOptions} = this.props
const {hoverTime, tableOptions, colors} = this.props
const data = this._data
const columnCount = _.get(data, ['0', 'length'], 0)
const rowCount = data.length
@ -163,6 +163,7 @@ class TableGraph extends Component {
hoveredColumnIndex={hoveredColumnIndex}
hoveredRowIndex={hoveredRowIndex}
hoverTime={hoverTime}
colors={colors}
/>}
</div>
)