Skip to content

Commit

Permalink
switch from underscore to lodash flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Sep 21, 2018
1 parent a81ba47 commit c6b3efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/assets/src/visualizations/deckgl/layers/polygon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';

import { PolygonLayer } from 'deck.gl';
import _ from 'underscore';
import { flatten } from 'lodash';
import d3 from 'd3';

import DeckGLContainer from './../DeckGLContainer';
Expand All @@ -12,7 +12,7 @@ import { colorScalerFactory } from '../../../modules/colors';
import sandboxedEval from '../../../modules/sandbox';

function getPoints(features) {
return _.flatten(features.map(d => d.polygon), true);
return flatten(features.map(d => d.polygon), true);
}

function getLayer(formData, payload, slice) {
Expand Down

0 comments on commit c6b3efe

Please sign in to comment.