Fix bug in pdp updat Ui
Fix the bug in the pdp update UI, one wrong "test" was preventing the user to tick a pdp group and ask for a new deployment
Issue-ID: POLICY-3204
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I4718e96767212e38496312e71072c3621a443fd3
diff --git a/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js b/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js
index d15c739..a2422e2 100644
--- a/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js
+++ b/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js
@@ -75,7 +75,7 @@
let commandsArray = [];
initialStates.forEach(initElem => {
let newStateFound = newStates.find(newElement => newElement.name === initElem.name);
- if (initElem.value !== newStateFound.value && initElem.value) {
+ if (initElem.value !== newStateFound.value) {
let newPdpGroupsArray = newStateFound.name.split("/");
commandsArray.push("DELETE/"+newPdpGroupsArray[0] + "/"+newPdpGroupsArray[1] + "/"+this.state.policyData.name
+ "/" + this.state.policyData.version);