mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
fix joblist updating completed jobs lists
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user