mirror of https://github.com/kcal-app/kcal.git
Do not restore weighted search results by name
This commit is contained in:
parent
3879898b7d
commit
b46752b6c7
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue