diff --git a/ui/src/components/topology/graph-simulation.js b/ui/src/components/topology/graph-simulation.js index 0c1d0f6d..fbed429c 100644 --- a/ui/src/components/topology/graph-simulation.js +++ b/ui/src/components/topology/graph-simulation.js @@ -78,17 +78,9 @@ const updateSimulation = ( }; }); - const mappedLinks = nextLinks.map((nextLink, index) => { - const simLink = simLinks.reduce((acc, l, i) => { - return nextLink.source === l.source && nextLink.target === l.target ? - l : acc; - }, {}); - return simLink ? { - ...simLink - } : { - ...nextLink - }; - }); + const mappedLinks = nextLinks.map((nextLink, index) => ({ + ...nextLink + })); const { width,