From 90211438fe469e0683fdfee11ca3956a4bbcebe3 Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Tue, 26 Jul 2022 15:21:12 -0400 Subject: [PATCH] Fix the endpoint used for updating recipes `this.recipe_id` is null, so use the recipe ID saved in the store Signed-off-by: Marcel Robitaille --- src/components/RecipeEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/RecipeEdit.vue b/src/components/RecipeEdit.vue index 51ff91c3f..8a5c45a72 100644 --- a/src/components/RecipeEdit.vue +++ b/src/components/RecipeEdit.vue @@ -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, })