Skip to content

Commit

Permalink
(fix) NPE when no matching drug for drug concept
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoodrich committed Feb 27, 2025
1 parent 86ba065 commit fec63e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/medication/medication.resource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function useMedicationFormulations(medicationCodeableConcept: string) {
openmrsFetch,
);

if (data) {
if (data?.data?.entry) {
return {
medicationFormulations: data.data.entry.map((e) => e.resource),
};
Expand Down

0 comments on commit fec63e5

Please sign in to comment.