diff --git a/app/assets/javascripts/miq_timeline.js b/app/assets/javascripts/miq_timeline.js index a536e51b2ca..daab9dcdfd6 100644 --- a/app/assets/javascripts/miq_timeline.js +++ b/app/assets/javascripts/miq_timeline.js @@ -82,10 +82,17 @@ warning: '#E17B1C' }; + if (typeof eventData === 'undefined' || typeof eventData.events === 'undefined') { + return colors.detail; + } + if (eventData.hasOwnProperty('events')) { var severity = 'detail'; var eventList = eventData.events; for (var i = 0; i < eventList.length; i++) { + if (typeof eventList[0].data.group_level === 'undefined') { + return colors.detail; + } severity = selectSevereer(eventList[i].data.group_level.value, severity); } return colors[severity];