forked from External/greenlight
fix bug when handling recently ended meeting status
This commit is contained in:
parent
ab5c56c27d
commit
5f2a561922
|
@ -106,10 +106,13 @@ var initialPopulate = function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery.each(attendees, function(i, attendee){
|
jQuery.each(attendees, function(i, attendee){
|
||||||
if(attendee['role'] == "MODERATOR"){
|
// The API doesn't return a empty array when empty, just undefined.
|
||||||
moderators.push(attendee['fullName'])
|
if(attendee != undefined){
|
||||||
} else {
|
if(attendee['role'] == "MODERATOR"){
|
||||||
participants.push(attendee['fullName'])
|
moderators.push(attendee['fullName'])
|
||||||
|
} else {
|
||||||
|
participants.push(attendee['fullName'])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue