From 6a9305818e6af1c27f4652ee7d588ab140feba38 Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Tue, 17 May 2022 14:57:57 -0700 Subject: [PATCH] use qs params when fetching new/updated jobs to preserve filters --- awx/ui/src/components/JobList/JobList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/src/components/JobList/JobList.js b/awx/ui/src/components/JobList/JobList.js index 4471df2333..c1d89ff718 100644 --- a/awx/ui/src/components/JobList/JobList.js +++ b/awx/ui/src/components/JobList/JobList.js @@ -103,13 +103,13 @@ function JobList({ }, [fetchJobs]); const fetchJobsById = useCallback( - async (ids, qs = {}) => { - const params = parseQueryString(qs, location.search); + async (ids) => { + const params = parseQueryString(qsConfig, location.search); params.id__in = ids.join(','); const { data } = await UnifiedJobsAPI.read(params); return data.results; }, - [location.search] + [location.search] // eslint-disable-line react-hooks/exhaustive-deps ); const jobs = useWsJobs(results, fetchJobsById, qsConfig);