Commit 55bd7aca authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Bufix: Heatmap scale not properly updated when elements selected in periodic table.

parent 0384e298
......@@ -144,7 +144,7 @@ class PeriodicTable extends React.Component {
this.setState({selected: selected})
}
this.props.onSelectionChanged(selected.map(element => element.symbol))
this.props.onSelectionChanged(selected)
}
unSelectedAggregations() {
......@@ -173,8 +173,8 @@ class PeriodicTable extends React.Component {
count={aggregations ? aggregations[element.symbol] || 0 : 0}
heatmapScale={heatmapScale}
relativeCount={aggregations ? (aggregations[element.symbol] || 0) / max : 0}
onClick={() => this.onElementClicked(element)}
selected={this.state.selected.indexOf(element) >= 0}
onClick={() => this.onElementClicked(element.symbol)}
selected={this.state.selected.indexOf(element.symbol) >= 0}
/> : ''}
</td>
))}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment