From 4b0ef2fd2a7584a9cd3471b6e373e13a30cb754e Mon Sep 17 00:00:00 2001 From: sniedzielski Date: Thu, 6 Jun 2024 15:06:04 +0200 Subject: [PATCH] CM-919: added adjustments for benefit tab for group beneficiaries --- src/actions.js | 3 ++- src/components/BenefitPackageBenefitsTab.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions.js b/src/actions.js index d61a978..dc5974e 100644 --- a/src/actions.js +++ b/src/actions.js @@ -53,7 +53,7 @@ const BENEFICIARY_FULL_PROJECTION = () => [ const GROUP_BENEFICIARY_FULL_PROJECTION = () => [ 'id', - 'group {id, code}', + 'group {id, code, head {uuid}}', 'status', ]; @@ -102,6 +102,7 @@ export function fetchBeneficiariesGroup(modulesManager, variables) { group { uuid, id, + head{uuid}, } status } diff --git a/src/components/BenefitPackageBenefitsTab.js b/src/components/BenefitPackageBenefitsTab.js index c2e266b..cdd5749 100644 --- a/src/components/BenefitPackageBenefitsTab.js +++ b/src/components/BenefitPackageBenefitsTab.js @@ -20,7 +20,6 @@ function BenefitPackageBenefitsTabLabel({ function BenefitPackageBenefitsTabPanel({ value, beneficiary, rights, classes, benefitPlan, groupBeneficiaries, }) { - if (!beneficiary) return null; return (