Skip to content

Commit

Permalink
refactor: fix key in a list being on a non-root element
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca authored and Simon-Laux committed May 25, 2024
1 parent 03c26bb commit 80e4c3a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/StatsTaskDistribution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,8 @@ export function TaskDistributionPie({
<table className="charts-css pie max-w-xs md:max-w-md w-2/4">
<tbody>
{labelsSortedWithPercentage.map((label) => (
<tr>
<td
key={label.label + "-" + label.percentage}
style={{ "--start": label.start, "--end": label.end }}
>
<tr key={label.label + "-" + label.percentage}>
<td style={{ "--start": label.start, "--end": label.end }}>
<span className="data"></span>
</td>
</tr>
Expand Down

0 comments on commit 80e4c3a

Please sign in to comment.