mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-06 23:51:23 +00:00
fix(calendar(js)): avoid exception when adding duplicated attendee
This commit is contained in:
@@ -190,8 +190,10 @@
|
||||
});
|
||||
}
|
||||
attendee.image = Attendees.$gravatar(attendee.email, 32);
|
||||
if (this.component.attendees)
|
||||
this.component.attendees.push(attendee);
|
||||
if (this.component.attendees) {
|
||||
if (_.findIndex(this.component.attendees, { email: attendee.email }) < 0)
|
||||
this.component.attendees.push(attendee);
|
||||
}
|
||||
else
|
||||
this.component.attendees = [attendee];
|
||||
this.updateFreeBusyAttendee(attendee);
|
||||
|
||||
Reference in New Issue
Block a user