diff --git a/awx/ui_next/src/components/JobList/useWsJobs.js b/awx/ui_next/src/components/JobList/useWsJobs.js index 574c50d1b4..e1d8d2d033 100644 --- a/awx/ui_next/src/components/JobList/useWsJobs.js +++ b/awx/ui_next/src/components/JobList/useWsJobs.js @@ -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; }