From 342154fe41a9e35c9c9149dcc82b6bf9264fdcd7 Mon Sep 17 00:00:00 2001 From: Roberto Soto Date: Wed, 4 Dec 2019 03:42:34 -0800 Subject: [PATCH] basic check of existing property in dashboard.js fixes #924 --- airtime_mvc/public/js/airtime/dashboard/dashboard.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/dashboard/dashboard.js b/airtime_mvc/public/js/airtime/dashboard/dashboard.js index 1b4d1c468..555cc4c7b 100644 --- a/airtime_mvc/public/js/airtime/dashboard/dashboard.js +++ b/airtime_mvc/public/js/airtime/dashboard/dashboard.js @@ -130,8 +130,7 @@ function updatePlaybar(){ $('#current').html(""+$.i18n._("Recording:")+""+currentSong.name+","); } else { $('#current').text(currentSong.name+","); - - if (currentSong.metadata.artwork_data) { + if (currentSong.metadata && currentSong.metadata.artwork_data) { var check_current_song = Cookies.get('current_track'); var loaded = Cookies.get('loaded');