Skip to content

Commit a937945

Browse files
committed
remove .default
1 parent 715e4ff commit a937945

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/geo_location_utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function findCentroid(feature) {
291291

292292
for(var i = 0; i < coords.length; i++) {
293293
var polyi = {type: 'Polygon', coordinates: coords[i]};
294-
var area = turfArea.default(polyi);
294+
var area = turfArea(polyi);
295295
if(area > maxArea) {
296296
maxArea = area;
297297
poly = polyi;
@@ -301,7 +301,7 @@ function findCentroid(feature) {
301301
poly = geometry;
302302
}
303303

304-
return turfCentroid.default(poly).geometry.coordinates;
304+
return turfCentroid(poly).geometry.coordinates;
305305
}
306306

307307
function fetchTraceGeoData(calcData) {

0 commit comments

Comments
 (0)