From cd25242576022322d45186ca41bddf3161f01961 Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 20 Apr 2021 18:16:09 +0200 Subject: 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 Change-Id: I4718e96767212e38496312e71072c3621a443fd3 --- ui-react/src/components/dialogs/Policy/PolicyDeploymentEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-react') 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); -- cgit 1.2.3-korg