From ea19dfe2432735c4509d93f2e5d1e8f851e0d417 Mon Sep 17 00:00:00 2001 From: Bhavya-egov <137176879+Bhavya-egov@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:51:51 +0530 Subject: [PATCH] fixed summary tab issue (#1690) --- .../packages/modules/campaign-manager/package.json | 2 +- .../modules/campaign-manager/src/components/CampaignSummary.js | 2 +- .../campaign-manager/src/components/DeliveryDetailsSummary.js | 2 +- .../campaign-manager/src/pages/employee/SetupCampaign.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json index 8e06e561d1b..874829b47c0 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/package.json @@ -20,7 +20,7 @@ "dependencies": { "@cyntler/react-doc-viewer": "1.10.3", "@egovernments/digit-ui-components": "0.0.2-beta.49", - "@egovernments/digit-ui-react-components": "1.8.2-beta.14", + "@egovernments/digit-ui-react-components": "1.8.2-beta.16", "@rjsf/core": "5.10.0", "@rjsf/utils": "5.10.0", "@rjsf/validator-ajv8": "5.10.0", diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/CampaignSummary.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/CampaignSummary.js index fe24da37a2e..14e393b1692 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/CampaignSummary.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/CampaignSummary.js @@ -154,7 +154,7 @@ function reverseDeliveryRemap(data, t) { const mapDeliveries = (deliveries) => { return deliveries?.map((delivery, deliveryIndex) => ({ - active: true, + active: deliveryIndex === 0, deliveryIndex: String(deliveryIndex + 1), deliveryRules: mapDoseCriteriaToDeliveryRules(delivery.doseCriteria), })); diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/DeliveryDetailsSummary.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/DeliveryDetailsSummary.js index b80681dc065..72e4bd52ae5 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/DeliveryDetailsSummary.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/DeliveryDetailsSummary.js @@ -152,7 +152,7 @@ function reverseDeliveryRemap(data, t) { const mapDeliveries = (deliveries) => { return deliveries?.map((delivery, deliveryIndex) => ({ - active: true, + active: deliveryIndex === 0, deliveryIndex: String(deliveryIndex + 1), deliveryRules: mapDoseCriteriaToDeliveryRules(delivery.doseCriteria), })); diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/SetupCampaign.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/SetupCampaign.js index b1700462756..d2cf21b89f8 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/SetupCampaign.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/SetupCampaign.js @@ -194,7 +194,7 @@ function reverseDeliveryRemap(data, t) { const mapDeliveries = (deliveries) => { return deliveries?.map((delivery, deliveryIndex) => ({ - active: true, + active: deliveryIndex === 0, deliveryIndex: String(deliveryIndex + 1), deliveryRules: mapDoseCriteriaToDeliveryRules(delivery.doseCriteria), }));