Skip to content

Commit

Permalink
Fix the endpoint used for updating recipes
Browse files Browse the repository at this point in the history
`this.recipe_id` is null, so use the recipe ID saved in the store

Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
  • Loading branch information
MarcelRobitaille committed Jul 26, 2022
1 parent b3ab950 commit 9021143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RecipeEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ export default {
const $this = this
const request = (() => {
if (this.recipe_id) {
if (this.$store.state.recipe.id) {
return this.$store.dispatch("updateRecipe", {
recipe: this.recipeWithCorrectedYield,
})
Expand Down

0 comments on commit 9021143

Please sign in to comment.