mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing job state setting when job is disabled
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user