From b09e7df8439398fc094a56ec33fa33950ac8fa9e Mon Sep 17 00:00:00 2001 From: xuegao Date: Tue, 23 Jul 2019 14:13:06 +0200 Subject: Rework Loop properties window Rework the loop properties window with React libraries. Issue-ID: CLAMP-447 Change-Id: I5eba63aab39aeefe23d5fdc4732ce0d3d4a1682a Signed-off-by: xuegao --- ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui-react/src/components/loop_viewer/svg') diff --git a/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js index b737f3e1..a409d2cd 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 +} -- cgit 1.2.3-korg