diff options
author | 2021-09-08 15:18:00 -0400 | |
---|---|---|
committer | 2021-09-08 15:18:05 -0400 | |
commit | 62d8a26cd359c101a6ee6c12b2887681653772f0 (patch) | |
tree | 61f8ee51cfa04fa03d53203f785af2874bf0d2cf /gui-editors/gui-editor-apex/src/main/resources/webapp | |
parent | a8af9621cd5be96dc802710078bae90400f6792a (diff) |
Fix sonar issue in policy/gui
Issue-ID: POLICY-3077
Change-Id: Ia4a1a12ab286d40205ec5a81d130c4845cd93cea
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp')
-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, |