diff --git a/packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/hiv-exposed-infant.component.tsx b/packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/hiv-exposed-infant.component.tsx index d8daeb940..6eb388983 100644 --- a/packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/hiv-exposed-infant.component.tsx +++ b/packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/hiv-exposed-infant.component.tsx @@ -140,7 +140,7 @@ const HivExposedInfant: React.FC<{ async function getParentRelationships() { let relationships = []; const relationshipsData = await fetchPatientRelationships(patientUuid); - if (relationshipsData.length) { + if (relationshipsData?.length) { relationshipsData.forEach((item) => { relationships.push(item); });