diff --git a/utilities/project-factory/src/server/validators/campaignValidators.ts b/utilities/project-factory/src/server/validators/campaignValidators.ts index 105a45c779b..7b899b89ecf 100644 --- a/utilities/project-factory/src/server/validators/campaignValidators.ts +++ b/utilities/project-factory/src/server/validators/campaignValidators.ts @@ -197,7 +197,7 @@ function validateTargets(data: any[], lowestLevelHierarchy: any, errors: any[], if (Array.isArray(data[key])) { const boundaryData = data[key]; boundaryData.forEach((obj: any, index: number) => { - if (obj.hasOwnProperty(lowestLevelHierarchy)) { + if (obj.hasOwnProperty(lowestLevelHierarchy)&&obj[lowestLevelHierarchy]) { const localizedTargetColumnName = getLocalizedName("ADMIN_CONSOLE_TARGET", localizationMap); const target = obj[localizedTargetColumnName]; if (target === undefined || typeof target !== 'number' || target <= 0 || target > 100000 || !Number.isInteger(target)) {