From a1f257bd4a32d19abff7300ee3f2ce4b889596bd Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Mon, 22 Jun 2020 15:08:10 -0700 Subject: [PATCH] fix joblist updating completed jobs lists --- awx/ui_next/src/components/JobList/useWsJobs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }