mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
use qs params when fetching new/updated jobs to preserve filters
This commit is contained in:
parent
48b016802c
commit
6a9305818e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user