From 2559905a78e7a17ebadd40995784b76dbca106de Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 15 Dec 2021 17:45:53 +0100 Subject: [PATCH] fixed empty fields breaking recipe update --- vue/src/apps/RecipeEditView/RecipeEditView.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index 58a28a01b..61cad5e0b 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -623,6 +623,10 @@ export default { this.sortIngredients(s) } + if (this.recipe.waiting_time === ''){ this.recipe.waiting_time = 0} + if (this.recipe.working_time === ''){ this.recipe.working_time = 0} + if (this.recipe.servings === ''){ this.recipe.servings = 0} + apiFactory.updateRecipe(this.recipe_id, this.recipe, {}).then((response) => { console.log(response)