Fixed client linting errors

This commit is contained in:
jpellizzari
2016-12-09 10:11:58 -08:00
parent b5a720e17c
commit 70960cc67a

View File

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