Avoid missing key warnings
This commit is contained in:
parent
859842b981
commit
f7147d0919
|
|
@ -24,7 +24,7 @@ export const WorkoutPlot: React.FC<{ intervals: Interval[] }> = ({ intervals })
|
|||
|
||||
return (
|
||||
<Plot>
|
||||
{ intervals.map((interval) => toBarProps(interval, workoutDuration, maxIntensity)).map((props) => (<Bar {...props} />)) }
|
||||
{ intervals.map((interval) => toBarProps(interval, workoutDuration, maxIntensity)).map((props, i) => (<Bar key={i} {...props} />)) }
|
||||
</Plot>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export const WorkoutStats: React.FC<{workout: Workout}> = ({ workout }) => {
|
|||
<Section>
|
||||
<Header>Zone distribution</Header>
|
||||
<ZoneList>
|
||||
{zones.map(zone => (<StatsLine label={zone.name} value={formatDuration(zone.duration)} />)) }
|
||||
{zones.map(zone => (<StatsLine key={zone.name} label={zone.name} value={formatDuration(zone.duration)} />)) }
|
||||
</ZoneList>
|
||||
</Section>
|
||||
</Container>
|
||||
|
|
|
|||
Loading…
Reference in New Issue