Ensure unique keys in thresholds lists
parent
8137ed998f
commit
053aa3d2d8
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue