mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
fix if else in referrer filter
This commit is contained in:
parent
0fd57aa7cf
commit
dbdbc90ee7
1 changed files with 3 additions and 3 deletions
|
|
@ -72,13 +72,13 @@ 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;
|
||||||
|
arr.push(`and ${column}={{${key}}}`);
|
||||||
|
|
||||||
if (key === 'referrer') {
|
if (key === 'referrer') {
|
||||||
arr.push(
|
arr.push(
|
||||||
'and (website_event.referrer_domain != {{websiteDomain}} or website_event.referrer_domain is null)',
|
'and (website_event.referrer_domain != {{websiteDomain}} or website_event.referrer_domain is null)',
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
const column = FILTER_COLUMNS[key] || key;
|
|
||||||
arr.push(`and ${column}={{${key}}}`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue