Fix bug in pdp updat Ui 34/120734/1
authorsebdet <sebastien.determe@intl.att.com>
Tue, 20 Apr 2021 16:16:09 +0000 (18:16 +0200)
committersebdet <sebastien.determe@intl.att.com>
Tue, 20 Apr 2021 16:16:09 +0000 (18:16 +0200)
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

ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js

index d15c739..a2422e2 100644 (file)
@@ -75,7 +75,7 @@ export default class PolicyDeploymentEditor extends React.Component {
         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);