Drawing fabric box only once
diff --git a/views/ngXosViews/mcordTopology/src/js/bbu.js b/views/ngXosViews/mcordTopology/src/js/bbu.js
index cdea2c6..30e9d2f 100644
--- a/views/ngXosViews/mcordTopology/src/js/bbu.js
+++ b/views/ngXosViews/mcordTopology/src/js/bbu.js
@@ -5,7 +5,14 @@
const duration = 500;
+ let isFabricDrawed = false;
+
this.drawFabricBox = (svg, hStep, vStep) => {
+
+ if(isFabricDrawed){
+ return;
+ }
+
let fabric = svg.append('g')
.attr({
transform: `translate(${hStep - 25}, ${vStep - 25})`
@@ -25,6 +32,8 @@
x: ((hStep + 50) / 2),
y: -10
});
+
+ isFabricDrawed = true;
};
this.drawBbus = (nodes) => {