Skip to content

Commit

Permalink
OHRI-1833: Null error pop up after child registration on the child MN…
Browse files Browse the repository at this point in the history
…CH summary ("when there is no relationship") resolved
  • Loading branch information
Herobiam committed Sep 8, 2023
1 parent b071c18 commit aac3df8
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 aac3df8

Please sign in to comment.