From 70960cc67a4ac89c30ea1fe26546f8ef018ae774 Mon Sep 17 00:00:00 2001 From: jpellizzari Date: Fri, 9 Dec 2016 10:11:58 -0800 Subject: [PATCH] Fixed client linting errors --- client/app/scripts/utils/data-generator-utils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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]) ));