From f7badead2c42110c8ef818d60ff056c699bb19b8 Mon Sep 17 00:00:00 2001 From: Travis Evans Date: Tue, 16 Jul 2024 17:20:04 -0500 Subject: [PATCH] Don't crash if timestamplog.json doesn't exist yet --- apps/timestamplog/interface.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/timestamplog/interface.html b/apps/timestamplog/interface.html index 6febe7849..b54dfb010 100644 --- a/apps/timestamplog/interface.html +++ b/apps/timestamplog/interface.html @@ -14,7 +14,7 @@ function HTMLStampLog(stampLog) { html = '' - if (stampLog.length) { + if (stampLog !== undefined && stampLog.length) { html += '
    '; for (const logItem of stampLog) { html += ('
  1. ' + new Date(logItem.stamp).toLocaleString() + '
  2. ');