forked from ddrilling/asb_cloud_front
Исправлена ошибка заполнения массива фильтров
This commit is contained in:
parent
1b42f77fef
commit
83d40e5396
@ -4,7 +4,7 @@ export const makeTextOnFilter = (key: string) =>
|
||||
export const makeTextFilters = (array: Record<string, unknown>[], 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
|
||||
|
Loading…
Reference in New Issue
Block a user