1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

fix joblist updating completed jobs lists

This commit is contained in:
Keith Grant 2020-06-22 15:08:10 -07:00
parent 638a6fdaa1
commit a1f257bd4a

View File

@ -38,10 +38,10 @@ export default function useWsJobs(initialJobs, fetchJobsById, filtersApplied) {
if (!lastMessage || !lastMessage.unified_job_id) {
return;
}
if (filtersApplied) {
if (['completed', 'failed', 'error'].includes(lastMessage.status)) {
enqueueJobId(lastMessage.unified_job_id);
}
if (
filtersApplied &&
!['completed', 'failed', 'error'].includes(lastMessage.status)
) {
return;
}