Skip to content

Commit

Permalink
Move turf require inside GET_VECTOR_INFO reducer (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro authored and mbarto committed Dec 12, 2016
1 parent 483683a commit 35cdb7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/client/reducers/mapInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ const {RESET_CONTROLS} = require('../actions/controls');

const assign = require('object-assign');
const {head} = require('lodash');
const buffer = require('turf-buffer');
const intersect = require('turf-intersect');

function receiveResponse(state, action, type) {
const request = head((state.requests || []).filter((req) => req.reqId === action.reqId));
Expand Down Expand Up @@ -112,6 +110,8 @@ function mapInfo(state = {}, action) {
});
}
case GET_VECTOR_INFO: {
const buffer = require('turf-buffer');
const intersect = require('turf-intersect');
const point = {
"type": "Feature",
"properties": {},
Expand Down

0 comments on commit 35cdb7f

Please sign in to comment.