ui: fix eslint

This commit is contained in:
Matthew Penner 2023-01-12 12:45:07 -07:00
parent 7e1aa8d7e2
commit 3d7112b702
No known key found for this signature in database
19 changed files with 28 additions and 30 deletions

View file

@ -18,13 +18,13 @@ export default (id: number, include: string[] = []) => {
const params = {};
if (filters !== null) {
Object.keys(filters).forEach(key => {
// @ts-ignore
// @ts-expect-error todo
params['filter[' + key + ']'] = filters[key];
});
}
if (sort !== null) {
// @ts-ignore
// @ts-expect-error todo
params.sort = (sortDirection ? '-' : '') + sort;
}