diff --git a/packages/esm-tb-app/src/views/program-management/tabs/mdr-tb.component.tsx b/packages/esm-tb-app/src/views/program-management/tabs/mdr-tb.component.tsx index 27aa3743a..14d26c041 100644 --- a/packages/esm-tb-app/src/views/program-management/tabs/mdr-tb.component.tsx +++ b/packages/esm-tb-app/src/views/program-management/tabs/mdr-tb.component.tsx @@ -18,8 +18,8 @@ const MdrTbList: React.FC = ({ patientUuid }) => { useEffect(() => { fetchPatientLastEncounter(patientUuid, config.encounterTypes.tbProgramEnrollment).then((encounter) => { - const result = encounter.obs.filter((ob) => ob.concept.uuid === config.obsConcepts.outcome); - if (result.length) { + const result = encounter?.obs?.filter((ob) => ob?.concept?.uuid === config.obsConcepts.outcome); + if (result?.length) { setIsEmptyOutcome(false); } });