fixing job state setting when job is disabled

This commit is contained in:
orangecoding
2026-06-13 13:14:07 +02:00
parent 3249881771
commit 72c2c02e49
4 changed files with 76 additions and 3 deletions

View File

@@ -185,6 +185,7 @@ const JobGrid = () => {
await xhrPut(`/api/jobs/${jobId}/status`, { status });
Toast.success(t('jobs.toastStatusChanged'));
loadData();
actions.jobsData.getJobs(); // refresh the jobs slice read by the edit form so its switch isn't stale
} catch (error) {
Toast.error(error.error);
}