mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Fixed client linting errors
This commit is contained in:
@@ -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])
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user