X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Flibraries%2Fgraph%2FHighlightRecordServicePaths.js;h=0094e01ce5afe0a3be30892770f0a0ce8f660b3a;hp=9274c2394d5f0c2aa6d7e7f0dfc9f24fe7617798;hb=223366ccc6537984552d07f827750e14e83219b8;hpb=132f9b77e1c32b82eb1c27cea048a5c1f2bfcb56 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);