From 61adc09d3b9dcce1b35693704f275c160b3d167d Mon Sep 17 00:00:00 2001 From: Ram Krishna Verma Date: Wed, 1 Sep 2021 15:00:24 -0400 Subject: Fix sonar issues in policy/gui Issue-ID: POLICY-3095 Change-Id: Ida760b380acbc5784f685e0a4c95c09f017ebf57 Signed-off-by: Ram Krishna Verma --- gui-pdp-monitoring/src/webapp/js/MonitoringUtils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gui-pdp-monitoring/src/webapp/js/MonitoringUtils.js') diff --git a/gui-pdp-monitoring/src/webapp/js/MonitoringUtils.js b/gui-pdp-monitoring/src/webapp/js/MonitoringUtils.js index 9c6e076..2f2b044 100644 --- a/gui-pdp-monitoring/src/webapp/js/MonitoringUtils.js +++ b/gui-pdp-monitoring/src/webapp/js/MonitoringUtils.js @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2020 Nordix Foundation. + * Modifications Copyright (C) 2021 Bell Canada. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -309,11 +310,11 @@ function clearEngineURL(clearPdps) { function getPdpList(data) { const pdpArray = []; - for (let i = 0; i < data.groups.length; i++) { + for (let value of data.groups) { var map = {}; - map.title = data.groups[i].name; + map.title = value.name; map.children = []; - (data.groups[i].pdpSubgroups).forEach((pdpSubgroup, index) => { + (value.pdpSubgroups).forEach((pdpSubgroup, index) => { map.children[index] = {}; map.children[index].title = pdpSubgroup.pdpType; const instanceId = []; -- cgit 1.2.3-korg