feat: update search query to include location filtering when no specific location is provided
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user