mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
0fd57aa7cf
1 changed files with 8 additions and 8 deletions
|
|
@ -72,14 +72,14 @@ function getFilterQuery(filters = {}): string {
|
||||||
const filter = filters[key];
|
const filter = filters[key];
|
||||||
|
|
||||||
if (filter !== undefined && !IGNORED_FILTERS.includes(key)) {
|
if (filter !== undefined && !IGNORED_FILTERS.includes(key)) {
|
||||||
const column = FILTER_COLUMNS[key] || key;
|
if (key === 'referrer') {
|
||||||
arr.push(`and ${column}={{${key}}}`);
|
arr.push(
|
||||||
}
|
'and (website_event.referrer_domain != {{websiteDomain}} or website_event.referrer_domain is null)',
|
||||||
|
);
|
||||||
if (key === 'referrer') {
|
} else {
|
||||||
arr.push(
|
const column = FILTER_COLUMNS[key] || key;
|
||||||
'and (website_event.referrer_domain != {{websiteDomain}} or website_event.referrer_domain is null)',
|
arr.push(`and ${column}={{${key}}}`);
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return arr;
|
return arr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue