From 68f44c01ea6b2338e926d5da61f38b47682f4d52 Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Thu, 7 Oct 2021 09:52:33 -0700 Subject: [PATCH] Rely on default qs value. --- awx/ui/src/components/JobList/useWsJobs.js | 2 +- awx/ui/src/components/JobList/useWsJobs.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }); });