mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed channels query. Closes #3245
This commit is contained in:
parent
0aad3d8e05
commit
a7ded80fb2
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ function getChannels(data: { domain: string; query: string; visitors: number }[]
|
||||||
|
|
||||||
const match = (value: string) => {
|
const match = (value: string) => {
|
||||||
return (str: string | RegExp) => {
|
return (str: string | RegExp) => {
|
||||||
return typeof str === 'string' ? value.includes(str) : (str as RegExp).test(value);
|
return typeof str === 'string' ? value?.includes(str) : (str as RegExp).test(value);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue