Fixed filter search.

This commit is contained in:
Mike Cao 2024-11-28 09:35:07 -08:00
parent 726212120f
commit 99559c2b35

View File

@ -28,6 +28,8 @@ export function useWebsiteValues({
const getSearch = (type: string, value: string) => {
if (value) {
const values = names[type];
if (values) {
return (
Object.keys(values)
.reduce((arr: string[], key: string) => {
@ -40,6 +42,9 @@ export function useWebsiteValues({
.join(',') || value
);
}
return value;
}
};
return useQuery({