Topo2: Enhanced link width uses scale to set the width
Change-Id: I80ba00bfc1e2a238ef593de0d99dd6552c5041c5
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Region.js b/web/gui/src/main/webapp/app/view/topo2/topo2Region.js
index f471e85..643aaa5 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2Region.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2Region.js
@@ -120,7 +120,12 @@
deviceConnections[key] = [];
}
- deviceConnections[key].push(link);
+ // TODO: Investigate why region contains dup links?!?!
+ // FIXME: This shouldn't be needed - The backend is sending dups
+ // and this is preventing the client thinking its a multilink
+ if (deviceConnections[key].indexOf(link) > -1) {
+ deviceConnections[key].push(link);
+ }
});
_.each(deviceConnections, function (connection) {