Do not restore weighted search results by name

This commit is contained in:
Christopher C. Wells 2021-03-02 19:33:23 -08:00
parent 3879898b7d
commit b46752b6c7
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,6 @@ class IngredientPickerController extends Controller
$results = $results->merge(Food::search($term)->get());
$results = $results->merge(Recipe::search($term)->get());
}
return response()->json($results->sortBy('name')->values());
return response()->json($results->values());
}
}