diff --git a/src/utils/table.ts b/src/utils/table.ts index 55af786..12ff435 100644 --- a/src/utils/table.ts +++ b/src/utils/table.ts @@ -4,7 +4,7 @@ export const makeTextOnFilter = (key: string) => export const makeTextFilters = (array: Record[], keys: string[]) => { const filters: string[][] = Array(keys.length) - filters.forEach((_, idx) => filters[idx] = []) + for (let i = 0; i < keys.length; filters[i++] = []); array.forEach((row) => { if (!row) return