From a84537ff96fe274450b6d5a8bde914c7fe972e51 Mon Sep 17 00:00:00 2001 From: sniedzielski <52816247+sniedzielski@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:04:17 +0200 Subject: [PATCH] CM-1004: fix upload beneficiary (#106) --- src/dialogs/BenefitPlanBeneficiariesUploadDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs/BenefitPlanBeneficiariesUploadDialog.js b/src/dialogs/BenefitPlanBeneficiariesUploadDialog.js index c7c8511..c4c003d 100644 --- a/src/dialogs/BenefitPlanBeneficiariesUploadDialog.js +++ b/src/dialogs/BenefitPlanBeneficiariesUploadDialog.js @@ -119,7 +119,7 @@ function BenefitPlanBeneficiariesUploadDialog({ formData.append('benefit_plan', benefitPlan.id); formData.append('workflow_name', values.workflow.name); formData.append('workflow_group', values.workflow.group); - formData.append('group_aggregation_column', groupAggregationHeader); + if (groupAggregationHeader) formData.append('group_aggregation_column', groupAggregationHeader); urlImport = `${baseApiUrl}/social_protection/import_beneficiaries/`; }