diff --git a/health-services/project-factory/src/server/utils/campaignUtils.ts b/health-services/project-factory/src/server/utils/campaignUtils.ts index a0282991e1..2606fe9151 100644 --- a/health-services/project-factory/src/server/utils/campaignUtils.ts +++ b/health-services/project-factory/src/server/utils/campaignUtils.ts @@ -2205,7 +2205,7 @@ async function getCodesTarget(request: any, localizationMap?: any) { entry["Target at the Selected Boundary level"]; if ( Object.keys(entry["Parent Target at the Selected Boundary level"]).length > 0 && - _.isEqual(entry["Parent Target at the Selected Boundary level"],entry["Target at the Selected Boundary level"]) + !_.isEqual(entry["Parent Target at the Selected Boundary level"],entry["Target at the Selected Boundary level"]) ) { boundaryCodesWhoseTargetsHasToBeUpdated.push(entry[codeColumnName]); }