Ensure unique keys in thresholds lists
parent
8137ed998f
commit
053aa3d2d8
|
@ -182,7 +182,7 @@ class GaugeOptions extends Component {
|
||||||
}
|
}
|
||||||
visualizationType="gauge"
|
visualizationType="gauge"
|
||||||
threshold={color}
|
threshold={color}
|
||||||
key={color.id}
|
key={uuid.v4()}
|
||||||
disableMaxColor={disableMaxColor}
|
disableMaxColor={disableMaxColor}
|
||||||
onChooseColor={this.handleChooseColor}
|
onChooseColor={this.handleChooseColor}
|
||||||
onValidateColorValue={this.handleValidateColorValue}
|
onValidateColorValue={this.handleValidateColorValue}
|
||||||
|
|
|
@ -154,7 +154,7 @@ class ThresholdsList extends Component {
|
||||||
<Threshold
|
<Threshold
|
||||||
visualizationType="single-stat"
|
visualizationType="single-stat"
|
||||||
threshold={color}
|
threshold={color}
|
||||||
key={color.id}
|
key={uuid.v4()}
|
||||||
onChooseColor={this.handleChooseColor}
|
onChooseColor={this.handleChooseColor}
|
||||||
onValidateColorValue={this.handleValidateColorValue}
|
onValidateColorValue={this.handleValidateColorValue}
|
||||||
onUpdateColorValue={this.handleUpdateColorValue}
|
onUpdateColorValue={this.handleUpdateColorValue}
|
||||||
|
|
Loading…
Reference in New Issue