Skip to content

Commit

Permalink
Merge pull request #1641 from Herobiam/OHRI-1833
Browse files Browse the repository at this point in the history
OHRI-1833: Null error pop up after child registration on the child MNCH summary ("when there is no relationship") resolved
  • Loading branch information
samuelmale authored Sep 8, 2023
2 parents b071c18 + aac3df8 commit 653cb8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 653cb8f

Please sign in to comment.