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
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);