Skip to content

Commit

Permalink
[MIM-1493] Dashboard: fixed marked rows on not complete, showing star…
Browse files Browse the repository at this point in the history
…ted status (#2261)

fixed colored rows on not complete, showing started status
  • Loading branch information
annesiri authored Nov 20, 2023
1 parent de5f2f6 commit a3a0f74
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export function Jobs() {
const jobTime = job.completionTime ? job.completionTime : job.startTime
const ts = jobTime ? format(new Date(jobTime), 'dd.MM.yyyy HH:mm') : null
const name = getTranslatedJobName(job.task)
const hasError = !!job.result?.result?.some((ds) => ds.hasError)
const hasError =
!!job.result?.result?.some((ds) => ds.hasError) || (job.status != 'COMPLETE' && job.status != 'STARTED')

const info = renderInfo(job)
return {
Expand Down Expand Up @@ -109,7 +110,7 @@ export function Jobs() {
)}
</span>
) : (
<span>{status}</span>
<span>{job.status}</span>
)
}

Expand Down

0 comments on commit a3a0f74

Please sign in to comment.