mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 21:51:59 +02:00
fix if else in referrer filter
This commit is contained in:
parent
0fd57aa7cf
commit
dbdbc90ee7
|
@ -72,13 +72,13 @@ function getFilterQuery(filters = {}): string {
|
|||
const filter = filters[key];
|
||||
|
||||
if (filter !== undefined && !IGNORED_FILTERS.includes(key)) {
|
||||
const column = FILTER_COLUMNS[key] || key;
|
||||
arr.push(`and ${column}={{${key}}}`);
|
||||
|
||||
if (key === 'referrer') {
|
||||
arr.push(
|
||||
'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…
Reference in New Issue
Block a user