Rework Loop properties window
Rework the loop properties window with React libraries.
Issue-ID: CLAMP-447
Change-Id: I5eba63aab39aeefe23d5fdc4732ce0d3d4a1682a
Signed-off-by: xuegao <xg353y@intl.att.com>
diff --git a/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
index b737f3e..a409d2c 100644
--- a/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
+++ b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
@@ -3,16 +3,16 @@
static buildMapOfComponents(loopCache) {
var componentsMap = new Map([]);
if (typeof (loopCache.getMicroServicePolicies()) !== "undefined") {
- loopCache.getMicroServicePolicies().map(ms => {
+ loopCache.getMicroServicePolicies().forEach(ms => {
componentsMap.set(ms.name, "/configurationPolicyModal/"+ms.name);
})
}
if (typeof (loopCache.getOperationalPolicies()) !== "undefined") {
- loopCache.getOperationalPolicies().map(op => {
+ loopCache.getOperationalPolicies().forEach(op => {
componentsMap.set(op.name, "/operationalPolicyModal");
})
}
componentsMap.set("OperationalPolicy","/operationalPolicyModal");
return componentsMap;
}
-}
\ No newline at end of file
+}