diff --git a/src/channels/web/static/app.js b/src/channels/web/static/app.js index 7fed4157..f0878585 100644 --- a/src/channels/web/static/app.js +++ b/src/channels/web/static/app.js @@ -2427,10 +2427,12 @@ function restartJob(jobId) { apiFetch('/api/jobs/' + jobId + '/restart', { method: 'POST' }) .then((res) => { showToast('Job restarted as ' + (res.new_job_id || '').substring(0, 8), 'success'); - loadJobs(); }) .catch((err) => { showToast('Failed to restart job: ' + err.message, 'error'); + }) + .finally(() => { + loadJobs(); }); }