Skip to content

Commit 4a2fe1f

Browse files
committed
fix: add missing child key props
1 parent f3e3b04 commit 4a2fe1f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/widgets/TrainingMonitor/components/MeasureChart/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class MeasureChart extends React.Component {
433433
const badgeIndex = index % 8;
434434

435435
return (
436-
<h3>
436+
<h3 key={`badge-${badgeIndex}`}>
437437
<i className={`fa fa-circle chart-badge-${badgeIndex}`} />
438438
{displayedValue}{" "}
439439
{this.props.showMinValue && minValue && minValue !== '--' ? (

src/components/widgets/TrainingMonitor/components/MeasureHistArray/TableItem.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class TableItem extends React.Component {
119119
const badgeIndex = index % 8;
120120

121121
return (
122-
<h4>
122+
<h4 key={`badge-${badgeIndex}`}>
123123
<i className={`fa fa-circle chart-badge-${badgeIndex}`} />
124124
{value}
125125
{bestValue ? bestValue : null}
@@ -152,6 +152,7 @@ class TableItem extends React.Component {
152152

153153
return (
154154
<Sparklines
155+
key={`sparkline-${index}`}
155156
data={sparkData}
156157
min={Math.floor(Math.min(...sparkData))}
157158
max={Math.ceil(Math.max(...sparkData))}

0 commit comments

Comments
 (0)