fix for crash on no additional facilitators
This commit is contained in:
Родитель
36744ca5a1
Коммит
839cc62d4b
|
@ -46,8 +46,11 @@ function sessionFaclitiators( session ) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// separate out remaining facilitators (if any)
|
// separate out remaining facilitators (if any)
|
||||||
var additional = session.facilitators.split( '\n' );
|
var additional = session.facilitators;
|
||||||
additional.forEach( function( facilitator ) {
|
if( !additional ) {
|
||||||
|
return facilitators;
|
||||||
|
}
|
||||||
|
additional.split( '\n' ).forEach( function( facilitator ) {
|
||||||
var twitterRegExp = /\B@[a-z0-9_-]+/ig; // matches a twitter handle
|
var twitterRegExp = /\B@[a-z0-9_-]+/ig; // matches a twitter handle
|
||||||
|
|
||||||
// look for their twitter handle and separate that out from their name
|
// look for their twitter handle and separate that out from their name
|
||||||
|
|
Загрузка…
Ссылка в новой задаче