From 044990a99055d2aeae7e419228cf110fc556dfa5 Mon Sep 17 00:00:00 2001 From: Albert Zak Date: Tue, 22 Jan 2019 23:40:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8C=20Fix=20undefined=20reference=20in?= =?UTF-8?q?=20past=20appointments=20container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/meteor/imports/client/patients/PastAppointmentsContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/meteor/imports/client/patients/PastAppointmentsContainer.js b/app/meteor/imports/client/patients/PastAppointmentsContainer.js index e381c1779..ef3d4c8df 100644 --- a/app/meteor/imports/client/patients/PastAppointmentsContainer.js +++ b/app/meteor/imports/client/patients/PastAppointmentsContainer.js @@ -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 }