Skip to content

Commit

Permalink
fix: make array from polygons instead of spreading into new array
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Sep 17, 2020
1 parent afbae01 commit 14f06c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Voronoi.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ export default function Voronoi() {

const voronoi = delaunay.voronoi(flatExtent)

polygons = [...voronoi.cellPolygons()]
polygons = voronoi.cellPolygons()

polygons = Array.from(polygons)

return (
<VoronoiElement>
Expand Down

0 comments on commit 14f06c5

Please sign in to comment.