Skip to content

Commit

Permalink
fix frontend build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulsenik committed Dec 12, 2024
1 parent c814aaf commit b1b1a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Components/Chart/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function MetricPieChart(props: { entries: ChartData[] | undefined; title:
<div className="bold">{title}</div>
<PieChart width={400} height={400}>
<Pie data={data} dataKey="value" nameKey="name" cx="50%" cy="50%" outerRadius={125} fill="#8884d8" label>
{data.map((entry, index) => (
{data.map((_, index) => (
<Cell key={`cell-${index}`} fill={COLORS[(index + shift) % COLORS.length]} />
))}
</Pie>
Expand Down

0 comments on commit b1b1a4c

Please sign in to comment.