fix(calendar(js)): avoid exception when adding invalid email as attendee
parent
5087582b75
commit
4ff0791faf
|
@ -340,7 +340,7 @@
|
||||||
if (address && emailRE.test(address))
|
if (address && emailRE.test(address))
|
||||||
createCard(address).then(addCard);
|
createCard(address).then(addCard);
|
||||||
}
|
}
|
||||||
else {
|
else if (angular.isDefined(card)) {
|
||||||
if (!this.component.$attendees.hasAttendee(card))
|
if (!this.component.$attendees.hasAttendee(card))
|
||||||
this.component.$attendees.add(card, options);
|
this.component.$attendees.add(card, options);
|
||||||
this.showAttendeesEditor |= initOrganizer;
|
this.showAttendeesEditor |= initOrganizer;
|
||||||
|
|
Loading…
Reference in New Issue