diff options
author | Pamela Dragosh <pd1248@att.com> | 2021-09-09 13:41:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-09-09 13:41:20 +0000 |
commit | 4cca9c08dcc9c56d8517e98498c6ff5627dd7121 (patch) | |
tree | 89667723529acbe8e8299b7c141fccea0367c61b /gui-editors | |
parent | 3f1961c7c3589928f024a07f62a950e3e039231b (diff) | |
parent | 62d8a26cd359c101a6ee6c12b2887681653772f0 (diff) |
Merge "Fix sonar issue in policy/gui"
Diffstat (limited to 'gui-editors')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexPolicyEditForm.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexPolicyEditForm.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexPolicyEditForm.js index edaf7b7..df0ddf0 100644 --- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexPolicyEditForm.js +++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexPolicyEditForm.js @@ -440,8 +440,7 @@ function editPolicyForm_activate(parent, operation, policy, tasks, events, conte break; } } - for (i = 0; i < policy.state.entry.length; i++) { - var stateEntry = policy.state.entry[i]; + for (let stateEntry of policy.state.entry) { statename = stateEntry.key; state = stateEntry.value; var stateLI = editPolicyForm_addState(statename, state, createEditOrView, policy, tasks, events, |