Fixed filtering on insights report.

This commit is contained in:
Mike Cao 2024-04-03 22:11:57 -07:00
parent cf8d49f867
commit ada332f174

View File

@ -31,7 +31,7 @@ export function filtersToArray(filters: QueryFilters = {}, options: QueryOptions
}
if (filter?.name && filter?.value !== undefined) {
return arr.concat(filter);
return arr.concat({ ...filter, column: options?.columns?.[key] ?? FILTER_COLUMNS[key] });
}
const { operator, value } = parseParameterValue(filter);