Skip to content

Commit

Permalink
fix jobCodes state
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Apr 20, 2024
1 parent 7920530 commit 374f659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/js/pages/Schedule.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 374f659

Please sign in to comment.