feat: import only flatMap from lodash

pull/21833/head
Aviral Dasgupta 2016-07-04 21:56:09 +05:30
parent 30b7efd585
commit 73b726e5fb
1 changed files with 2 additions and 2 deletions

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);