(fix) Variable test in Component service

pull/95/merge
Francis Lachapelle 2015-08-04 13:45:17 -04:00
parent 09224f587f
commit 95a360dd36
1 changed files with 2 additions and 1 deletions

View File

@ -730,7 +730,8 @@
}
if (this.$hasAlarm) {
if (this.alarm.action == 'email' && !(this.attendees && this.attendees.length > 0)) {
if (this.alarm.action && this.alarm.action == 'email' &&
!(this.attendees && this.attendees.length > 0)) {
// No attendees; email reminder must be sent to organizer only
this.alarm.attendees = 0;
this.alarm.organizer = 1;