Skip to content

Commit

Permalink
🐌 Fix undefined reference in past appointments container
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzak committed Jan 22, 2019
1 parent a4bb50f commit 044990a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const composer = (props) => {
return {
...props,
patient,
currentAppointment: { ...currentAppointment, calendar: calendars[currentAppointment.calendarId] },
currentAppointment: currentAppointment && { ...currentAppointment, calendar: calendars[currentAppointment.calendarId] },
pastAppointments,
futureAppointments
}
Expand Down

0 comments on commit 044990a

Please sign in to comment.