Skip to content

Commit 14f06c5

Browse files
committed
fix: make array from polygons instead of spreading into new array
1 parent afbae01 commit 14f06c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Voronoi.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ export default function Voronoi() {
150150

151151
const voronoi = delaunay.voronoi(flatExtent)
152152

153-
polygons = [...voronoi.cellPolygons()]
153+
polygons = voronoi.cellPolygons()
154+
155+
polygons = Array.from(polygons)
154156

155157
return (
156158
<VoronoiElement>

0 commit comments

Comments
 (0)