Skip to content

Commit

Permalink
fix: voronoi key index fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 22, 2021
1 parent f65fc3f commit 52b871b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Voronoi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ function PrimaryVoronoi<TDatum>({
},
}}
>
{columns.map(column => {
{columns.map((column, i) => {
return (
<React.Fragment key={column.primaryPx}>
<React.Fragment key={`${column.primaryPx}_${i}`}>
{column.datumBoundaries.map(datumBoundary => {
const x1 = !primaryAxis.isVertical
? column.primaryStart
Expand Down

1 comment on commit 52b871b

@vercel
Copy link

@vercel vercel bot commented on 52b871b Jul 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.