Skip to content

Commit

Permalink
Bounds duration undefined bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amjithtitus09 committed Jan 9, 2025
1 parent 40e4570 commit d76f6b3
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,12 @@ const MedicationRequestGridRow: React.FC<{
period: dosageInstruction?.timing?.repeat?.period ?? 1,
period_unit:
dosageInstruction?.timing?.repeat?.period_unit ?? "d",
bounds_duration: {
value: value?.value,
unit: value?.unit as keyof typeof BOUNDS_DURATION_UNITS,
},
bounds_duration: value?.value
? {
value: value.value,
unit: value.unit as keyof typeof BOUNDS_DURATION_UNITS,
}
: undefined,
},
},
})
Expand Down

0 comments on commit d76f6b3

Please sign in to comment.