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:
parent
638a6fdaa1
commit
a1f257bd4a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user