1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-23 23:29:41 +02:00

improved error handling

This commit is contained in:
Hayden 2021-01-03 12:09:10 -09:00
parent a0acfdbc8f
commit abd605918d
2 changed files with 5 additions and 7 deletions

View file

@ -23,10 +23,9 @@ export default {
let response = await apiReq.post(recipeURLs.createByURL, {
url: recipeURL,
});
console.log(response);
let recipeSlug = response.data;
store.dispatch("requestRecentRecipes");
router.push(`/recipe/${recipeSlug}`);
return response;
},
async create(recipeData) {