Skip to content

Commit

Permalink
[charts] Fix grid duplicated key (#12208)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette authored Feb 26, 2024
1 parent 4ba1469 commit db74b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x-charts/src/ChartsGrid/ChartsGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function ChartsGrid(props: ChartsGridProps) {
{vertical &&
xTicks.map(({ formattedValue, offset }) => (
<line
key={formattedValue}
key={`vertical-${formattedValue}`}
y1={yScale.range()[0]}
y2={yScale.range()[1]}
x1={offset}
Expand All @@ -97,7 +97,7 @@ function ChartsGrid(props: ChartsGridProps) {
{horizontal &&
yTicks.map(({ formattedValue, offset }) => (
<line
key={formattedValue}
key={`horizontal-${formattedValue}`}
y1={offset}
y2={offset}
x1={xScale.range()[0]}
Expand Down

0 comments on commit db74b5e

Please sign in to comment.