aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-04-20 18:16:09 +0200
committersebdet <sebastien.determe@intl.att.com>2021-04-20 18:16:09 +0200
commitcd25242576022322d45186ca41bddf3161f01961 (patch)
tree595eda4303694e6af513a5adc3ad3fe1b2fc96cd /ui-react
parentc71614e99da78d4de6015d7689078b287f21f619 (diff)
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
Diffstat (limited to 'ui-react')
-rw-r--r--ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js b/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js
index d15c73930..a2422e2ad 100644
--- a/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js
+++ b/ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js
@@ -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);