From 374f659955576c183bf3bf147e37c71b49aaecbf Mon Sep 17 00:00:00 2001 From: mikeTWC1984 Date: Fri, 19 Apr 2024 21:12:11 -0400 Subject: [PATCH] fix jobCodes state --- htdocs/js/pages/Schedule.class.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/js/pages/Schedule.class.js b/htdocs/js/pages/Schedule.class.js index 815681f..5339077 100644 --- a/htdocs/js/pages/Schedule.class.js +++ b/htdocs/js/pages/Schedule.class.js @@ -993,7 +993,8 @@ Class.subclass(Page.Base, "Page.Schedule", { } let lastStatus = 'event-none' - let xcode = app.state.jobCodes[item.id]; + let jobCodes = app.state.jobCodes || {} + let xcode = jobCodes[item.id]; if (xcode === 0) lastStatus = 'event-success' if (xcode > 0) lastStatus = 'event-error' if (xcode === 255) lastStatus = 'event-warning'