Skip to content

Commit

Permalink
Add key to list items
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Apr 24, 2023
1 parent 3be543d commit a57397c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/Chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,15 @@ const renderMultiLineChart = (
}
/>
{dataKeys.map((value: string) => {
return <Line dataKey={value} stroke={dataKeyColors.get(value)} dot={false} strokeWidth={LINE_STROKE_WIDTH} />;
return (
<Line
key={value}
dataKey={value}
stroke={dataKeyColors.get(value)}
dot={false}
strokeWidth={LINE_STROKE_WIDTH}
/>
);
})}
</LineChart>
);
Expand Down

0 comments on commit a57397c

Please sign in to comment.