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) {