fix errors if there's no track

This commit is contained in:
Franzi 2021-11-20 09:22:16 +01:00
parent bdf7281b74
commit a4ad26ac0b
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
1 changed files with 5 additions and 1 deletions

View File

@ -49,10 +49,14 @@ function update_lower_third() {
if (current_talk) {
$('#title').text(current_talk['title']);
$('#speaker').text(current_talk['persons'].join(', '));
$('#box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
} else {
$('#title').text('Currently no talk');
$('#speaker').text('');
}
if (current_talk && current_talk['track']) {
$('#box').css('border-bottom', '10px solid ' + current_talk['track']['color']);
} else {
$('#box').css('border-bottom', 'none');
}
}