From fd978f9c19fbf217f578047cf3722921143e107e Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 2 Dec 2023 18:58:44 +0100 Subject: [PATCH] fixed copying recipes with properties --- vue/src/components/RecipeContextMenu.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vue/src/components/RecipeContextMenu.vue b/vue/src/components/RecipeContextMenu.vue index dee82fda7..bf22a952f 100644 --- a/vue/src/components/RecipeContextMenu.vue +++ b/vue/src/components/RecipeContextMenu.vue @@ -263,9 +263,11 @@ export default { }, } }) - if (recipe.nutrition !== null) { - delete recipe.nutrition.id - } + + recipe.properties = recipe.properties.map(p => { + return { ...p, ...{ id: undefined, } } + }) + apiClient .createRecipe(recipe) .then((new_recipe) => {