Skip to content

Commit

Permalink
Don't try to populate event info table if there is no data. Prevents …
Browse files Browse the repository at this point in the history
…js errors
  • Loading branch information
Isaac Connor committed Jan 29, 2025
1 parent 0c3a7e6 commit 2f03e05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/skins/classic/views/js/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 2f03e05

Please sign in to comment.