mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
Rely on default qs value.
This commit is contained in:
@@ -31,7 +31,7 @@ export default function useWsJobs(initialJobs, fetchJobsById, qsConfig) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setJobsToFetch([]);
|
setJobsToFetch([]);
|
||||||
const newJobs = await fetchJobsById(throttledJobsToFetch, {});
|
const newJobs = await fetchJobsById(throttledJobsToFetch);
|
||||||
const deduplicated = newJobs.filter(
|
const deduplicated = newJobs.filter(
|
||||||
(job) => !jobs.find((j) => j.id === job.id)
|
(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();
|
WS.clean();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user