diff --git a/views/event-logs.ejs b/views/event-logs.ejs index 1a4a01b..d1ad4dc 100644 --- a/views/event-logs.ejs +++ b/views/event-logs.ejs @@ -74,9 +74,10 @@ const formattedDate = `${yyyy}-${mm}-${dd} ${HH}:${MM}:${ss} ${tz}`; // Use EJS-injected dataTypes for event types, directions, and reasons - const eventTypes = <% - JSON.stringify(dataTypes.EventType) %>; - const directions = <% - JSON.stringify(dataTypes.Direction) %>; - const reasons = <% - JSON.stringify(dataTypes.EventReason) %>; + const dataTypes = <%- JSON.stringify(dataTypes) %>; + const eventTypes = dataTypes.EventType; + const directions = dataTypes.Direction; + const reasons = dataTypes.EventReason; const tr = document.createElement('tr'); if (log.Type === 3) {