Don't crash if timestamplog.json doesn't exist yet

master
Travis Evans 2024-07-16 17:20:04 -05:00
parent 29e30ca121
commit f7badead2c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
function HTMLStampLog(stampLog) {
html = ''
if (stampLog.length) {
if (stampLog !== undefined && stampLog.length) {
html += '<ol>';
for (const logItem of stampLog) {
html += ('<li>' + new Date(logItem.stamp).toLocaleString() + '</li>');