Skip to content

Commit 52b871b

Browse files
committed
fix: voronoi key index fallback
1 parent f65fc3f commit 52b871b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Voronoi.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ function PrimaryVoronoi<TDatum>({
201201
},
202202
}}
203203
>
204-
{columns.map(column => {
204+
{columns.map((column, i) => {
205205
return (
206-
<React.Fragment key={column.primaryPx}>
206+
<React.Fragment key={`${column.primaryPx}_${i}`}>
207207
{column.datumBoundaries.map(datumBoundary => {
208208
const x1 = !primaryAxis.isVertical
209209
? column.primaryStart

0 commit comments

Comments
 (0)