Ensure unique keys in thresholds lists

pull/10616/head
Alex P 2018-04-03 21:14:04 -07:00
parent 8137ed998f
commit 053aa3d2d8
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class GaugeOptions extends Component {
}
visualizationType="gauge"
threshold={color}
key={color.id}
key={uuid.v4()}
disableMaxColor={disableMaxColor}
onChooseColor={this.handleChooseColor}
onValidateColorValue={this.handleValidateColorValue}

View File

@ -154,7 +154,7 @@ class ThresholdsList extends Component {
<Threshold
visualizationType="single-stat"
threshold={color}
key={color.id}
key={uuid.v4()}
onChooseColor={this.handleChooseColor}
onValidateColorValue={this.handleValidateColorValue}
onUpdateColorValue={this.handleUpdateColorValue}