Skip to content

Commit 2f03e05

Browse files
Don't try to populate event info table if there is no data. Prevents js errors
1 parent 0c3a7e6 commit 2f03e05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/skins/classic/views/js/event.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,8 @@ function getEvtStatsCookie() {
12271227

12281228
function getStat() {
12291229
eventStatsTable.empty().append('<tbody>');
1230+
if (!eventData) return;
1231+
12301232
$j.each(eventDataStrings, function(key) {
12311233
if (key == 'MonitorId') return true; // Not show ID string
12321234
var th = $j('<th class="label">').addClass('text-right').text(eventDataStrings[key]);

0 commit comments

Comments
 (0)