aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/loop_viewer/svg
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2019-07-23 14:13:06 +0200
committerxuegao <xg353y@intl.att.com>2019-07-23 14:13:06 +0200
commitb09e7df8439398fc094a56ec33fa33950ac8fa9e (patch)
treee940a3bc2875c7f9bbe2521acdd709f21f2d76e0 /ui-react/src/components/loop_viewer/svg
parentc1ccc5428cdb26b47dc6f6f5f8222808c3db3075 (diff)
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>
Diffstat (limited to 'ui-react/src/components/loop_viewer/svg')
-rw-r--r--ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
index b737f3e19..a409d2cd0 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 @@ export default class LoopComponentConverter {
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
+}