dummy fill missing reason field for event

merge-requests/134/head
Moe 2019-10-30 14:34:37 -07:00
parent d6d386cf93
commit 662ddedef1
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ $(document).ready(function(e){
})
})
$.each(events,function(n,event){
var eventReason = event.details.reason.toUpperCase()
var eventReason = event.details && event.details.reason ? event.details.reason.toUpperCase() : "UNKNOWN"
var eventSlotTag = eventReason
if(eventReason === 'OBJECT' && event.details.matrices[0]){
eventSlotTag = []