1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

fe: fix display of first run of job

if it is still running and is the first known of its
name to the frontend, special handling is needed
This commit is contained in:
Oliver Giles 2022-09-03 19:51:29 +12:00
parent 99e2e62906
commit e7defa9f15

View File

@ -487,7 +487,7 @@ const All = templateId => {
state.jobs[idx] = job; state.jobs[idx] = job;
else { else {
// special case: first run of a job. // special case: first run of a job.
state.jobs.unshift(j); state.jobs.unshift(job);
state.jobs.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0); state.jobs.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
} }
}); });