feat: update search query to include location filtering when no specific location is provided

This commit is contained in:
pradeepkumar
2026-04-20 10:46:03 +05:30
parent da805fbc5c
commit 07b19e3a7c

View File

@@ -484,9 +484,13 @@ function ProfilesPageContent() {
sortOrder: 'desc',
};
// Add search query
// Add search query — also applies to location (city/state/country/service_areas)
// so single input matches across name + location fields (backend ORs them).
if (searchQuery) {
params.search = searchQuery;
if (!locationFromUrl) {
params.location = searchQuery;
}
}
// Add agent type filter