mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-01 10:43:25 -04:00
Bug/fix infinite loop (#512)
* fix infinite loop with safe get method * fix ingredients Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -35,10 +35,8 @@ export const recipeAPI = {
|
||||
},
|
||||
|
||||
async requestDetails(recipeSlug) {
|
||||
const response = await apiReq.get(API_ROUTES.recipesRecipeSlug(recipeSlug));
|
||||
if (response.response) {
|
||||
return response.response;
|
||||
}
|
||||
const response = await apiReq.getSafe(API_ROUTES.recipesRecipeSlug(recipeSlug));
|
||||
console.log(response);
|
||||
return response;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user