Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed filtering on insights report.

Mike Caoada332f174e6
diff --git a/src/lib/params.ts b/src/lib/params.ts
index 801c60b20..ef4568bac 100644
--- a/src/lib/params.ts
+++ b/src/lib/params.ts
@@ -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);