diff --git a/awx/ui/src/components/JobList/useWsJobs.js b/awx/ui/src/components/JobList/useWsJobs.js index b84868aab6..b2173950cc 100644 --- a/awx/ui/src/components/JobList/useWsJobs.js +++ b/awx/ui/src/components/JobList/useWsJobs.js @@ -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) ); diff --git a/awx/ui/src/components/JobList/useWsJobs.test.js b/awx/ui/src/components/JobList/useWsJobs.test.js index 8c9201d8f7..1f2775188a 100644 --- a/awx/ui/src/components/JobList/useWsJobs.test.js +++ b/awx/ui/src/components/JobList/useWsJobs.test.js @@ -123,7 +123,7 @@ describe('useWsJobs hook', () => { ); }); - expect(fetch).toHaveBeenCalledWith([2], {}); + expect(fetch).toHaveBeenCalledWith([2]); WS.clean(); }); });