(js) Fix possible exception in sgFreebusy

pull/259/head
Francis Lachapelle 2019-10-07 11:10:17 -04:00
parent 99bfcaec37
commit 2fb81310e3
1 changed files with 1 additions and 1 deletions

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();