fix(calendar(js)): avoid exception when adding invalid email as attendee

pull/283/head
Francis Lachapelle 2020-07-01 15:45:02 -04:00
parent 5087582b75
commit 4ff0791faf
1 changed files with 1 additions and 1 deletions

View File

@ -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;