mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-26 00:01:37 +00:00
fix: improve runs page auto-refresh loading for out-of-order started at
This commit is contained in:
@@ -388,9 +388,7 @@
|
||||
if (isQueuedJob) {
|
||||
if (cursor > 0) {
|
||||
let inc = invCursor == 0 && jobs[invCursor].type == 'CompletedJob' ? 0 : 1
|
||||
const date = new Date(
|
||||
jobs[invCursor + inc]?.started_at ?? jobs[invCursor + inc]?.created_at!
|
||||
)
|
||||
const date = new Date(jobs[invCursor + inc]?.created_at!)
|
||||
date.setMilliseconds(date.getMilliseconds() + 1)
|
||||
ts = date.toISOString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user