X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Flibraries%2Fgraph%2FHighlightRecordServicePaths.js;h=0094e01ce5afe0a3be30892770f0a0ce8f660b3a;hb=f2dc2462571800e62cba969964de621dca09299c;hp=9274c2394d5f0c2aa6d7e7f0dfc9f24fe7617798;hpb=e29efc315df33d546237e270470916e26df391d6;p=osm%2FUI.git diff --git a/skyquake/plugins/composer/src/src/libraries/graph/HighlightRecordServicePaths.js b/skyquake/plugins/composer/src/src/libraries/graph/HighlightRecordServicePaths.js index 9274c2394..0094e01ce 100644 --- a/skyquake/plugins/composer/src/src/libraries/graph/HighlightRecordServicePaths.js +++ b/skyquake/plugins/composer/src/src/libraries/graph/HighlightRecordServicePaths.js @@ -4,7 +4,7 @@ 'use strict'; -import _ from 'lodash' +import _isArray from 'lodash/isArray' import d3 from 'd3' /** @@ -26,7 +26,7 @@ export default class HighlightRecordServicePaths { Array.from(document.querySelectorAll(`svg .forwarding-graph-paths`)).forEach(d => { d3.select(d).classed('-is-highlighting', true); }); - const list = _.isArray(rsp) ? rsp : [rsp]; + const list = _isArray(rsp) ? rsp : [rsp]; list.forEach(rsp => { Array.from(document.querySelectorAll(`[data-id="${rsp.id}"]`)).forEach(d => { d.parentNode.appendChild(d);