Importing lodash util functions explicitly.

This commit is contained in:
fbarl
2016-12-05 12:40:33 +01:00
committed by Filip Barl
parent 856a5a0388
commit 524e2e2e9a
21 changed files with 122 additions and 122 deletions

View File

@@ -1,4 +1,4 @@
import _ from 'lodash';
import { zipObject } from 'lodash';
import { scaleLinear } from 'd3-scale';
import { extent } from 'd3-array';
@@ -122,7 +122,7 @@ function handleAdd(nodes) {
function handleUpdated(updatedNodes, prevNodes) {
const modifiedNodesIndex = _.zipObject((updatedNodes || []).map(n => [n.id, n]));
const modifiedNodesIndex = zipObject((updatedNodes || []).map(n => [n.id, n]));
return prevNodes.toIndexedSeq().toJS().map(n => (
Object.assign({}, mergeMetrics(n), modifiedNodesIndex[n.id])
));