* Calendar - avoid hanging in planner if event has an invalid category

This commit is contained in:
nathangray 2018-01-17 16:13:55 -07:00
parent 21436f6b85
commit 2e9b486931

View File

@ -752,11 +752,11 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
break;
}
}
if(typeof rows[label_index] === 'undefined')
if(label_index && typeof rows[label_index] === 'undefined')
{
rows[label_index] = [];
}
if(rows[label_index].indexOf(event) === -1)
if(label_index && rows[label_index].indexOf(event) === -1)
{
rows[label_index].push(event);
}