(js) Fix possible exception in sgFreebusy

This commit is contained in:
Francis Lachapelle
2019-10-07 11:10:17 -04:00
parent 99bfcaec37
commit 2fb81310e3

View File

@@ -38,7 +38,7 @@
} : null;
},
function(newAttrs, oldAttrs) {
if (newAttrs.attendees) {
if (newAttrs && newAttrs.attendees) {
// Attendees have changed
$q.all(_.values($ctrl.component.$attendees.$futureFreebusyData)).then(function() {
$ctrl.onUpdate();