Don't try to populate event info table if there is no data. Prevents js errors

This commit is contained in:
Isaac Connor
2025-01-29 11:31:54 -05:00
parent 0c3a7e6737
commit 2f03e051cd

View File

@@ -1227,6 +1227,8 @@ function getEvtStatsCookie() {
function getStat() {
eventStatsTable.empty().append('<tbody>');
if (!eventData) return;
$j.each(eventDataStrings, function(key) {
if (key == 'MonitorId') return true; // Not show ID string
var th = $j('<th class="label">').addClass('text-right').text(eventDataStrings[key]);