mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fixed filter search.
This commit is contained in:
parent
726212120f
commit
99559c2b35
@ -28,6 +28,8 @@ export function useWebsiteValues({
|
|||||||
const getSearch = (type: string, value: string) => {
|
const getSearch = (type: string, value: string) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
const values = names[type];
|
const values = names[type];
|
||||||
|
|
||||||
|
if (values) {
|
||||||
return (
|
return (
|
||||||
Object.keys(values)
|
Object.keys(values)
|
||||||
.reduce((arr: string[], key: string) => {
|
.reduce((arr: string[], key: string) => {
|
||||||
@ -40,6 +42,9 @@ export function useWebsiteValues({
|
|||||||
.join(',') || value
|
.join(',') || value
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return useQuery({
|
return useQuery({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user