Remove comments and linter-disable.

This commit is contained in:
Kia Lam 2021-10-06 13:18:47 -07:00
parent 0f044f6c21
commit 4b7faea552

View File

@ -98,7 +98,6 @@ function JobList({ defaultParams, showTypeColumn = false }) {
fetchJobs();
}, [fetchJobs]);
// TODO: update QS_CONFIG to be safe for deps array
const fetchJobsById = useCallback(
async (ids, qs = {}) => {
const params = parseQueryString(qs, location.search);
@ -106,7 +105,7 @@ function JobList({ defaultParams, showTypeColumn = false }) {
const { data } = await UnifiedJobsAPI.read(params);
return data.results;
},
[location.search] // eslint-disable-line react-hooks/exhaustive-deps
[location.search]
);
const jobs = useWsJobs(results, fetchJobsById, qsConfig);