diff --git a/client/app/scripts/utils/data-generator-utils.js b/client/app/scripts/utils/data-generator-utils.js index d32e049144..2f9f31f362 100644 --- a/client/app/scripts/utils/data-generator-utils.js +++ b/client/app/scripts/utils/data-generator-utils.js @@ -1,8 +1,7 @@ -import { zipObject } from 'lodash'; +import _ from 'lodash'; import { scaleLinear } from 'd3-scale'; import { extent } from 'd3-array'; - // Inspired by Lee Byron's test data generator. /*eslint-disable */ function bumpLayer(n, maxValue) { @@ -122,7 +121,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]) ));