fix bug when handling recently ended meeting status

This commit is contained in:
Josh 2017-07-14 11:13:11 -04:00
parent ab5c56c27d
commit 5f2a561922
1 changed files with 7 additions and 4 deletions

View File

@ -106,11 +106,14 @@ var initialPopulate = function(){
} }
jQuery.each(attendees, function(i, attendee){ jQuery.each(attendees, function(i, attendee){
// The API doesn't return a empty array when empty, just undefined.
if(attendee != undefined){
if(attendee['role'] == "MODERATOR"){ if(attendee['role'] == "MODERATOR"){
moderators.push(attendee['fullName']) moderators.push(attendee['fullName'])
} else { } else {
participants.push(attendee['fullName']) participants.push(attendee['fullName'])
} }
}
}); });
// Create meeting. // Create meeting.