From e7defa9f15b8fac9716246978b1714725017cc81 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Sat, 3 Sep 2022 19:51:29 +1200 Subject: [PATCH] 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 --- src/resources/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/js/app.js b/src/resources/js/app.js index fff0e0d..349d4e9 100644 --- a/src/resources/js/app.js +++ b/src/resources/js/app.js @@ -487,7 +487,7 @@ const All = templateId => { state.jobs[idx] = job; else { // 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); } });