mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
Rely on default qs value.
This commit is contained in:
parent
4b7faea552
commit
68f44c01ea
@ -31,7 +31,7 @@ export default function useWsJobs(initialJobs, fetchJobsById, qsConfig) {
|
||||
return;
|
||||
}
|
||||
setJobsToFetch([]);
|
||||
const newJobs = await fetchJobsById(throttledJobsToFetch, {});
|
||||
const newJobs = await fetchJobsById(throttledJobsToFetch);
|
||||
const deduplicated = newJobs.filter(
|
||||
(job) => !jobs.find((j) => j.id === job.id)
|
||||
);
|
||||
|
||||
@ -123,7 +123,7 @@ describe('useWsJobs hook', () => {
|
||||
);
|
||||
});
|
||||
|
||||
expect(fetch).toHaveBeenCalledWith([2], {});
|
||||
expect(fetch).toHaveBeenCalledWith([2]);
|
||||
WS.clean();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user