1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 13:35:23 +02:00

fix unauthorized recipe (#499)

This commit is contained in:
wengtad 2021-06-13 03:46:31 +08:00 committed by GitHub
parent 0e42f7407d
commit 562cea341b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -36,7 +36,8 @@ export const recipeAPI = {
async requestDetails(recipeSlug) {
let response = await apiReq.get(API_ROUTES.recipesRecipeSlug(recipeSlug));
return response.data;
if (response && response.data) return response.data;
else return null;
},
updateImage(recipeSlug, fileObject, overrideSuccessMsg = false) {