feat: import only flatMap from lodash

This commit is contained in:
Aviral Dasgupta 2016-07-04 21:56:09 +05:30
parent 30b7efd585
commit 73b726e5fb

View file

@ -1,7 +1,7 @@
import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import classNames from 'classnames';
import _ from 'lodash';
import flatMap from 'lodash/flatMap';
import {getCompletions} from '../../../autocomplete/Autocompleter';
@ -42,7 +42,7 @@ export default class Autocomplete extends React.Component {
this.setState({
completions: newCompletions,
completionList: _.flatMap(newCompletions, provider => provider.completions),
completionList: flatMap(newCompletions, provider => provider.completions),
});
}, err => {
console.error(err);