diff --git a/vue/src/components/RecipeContextMenu.vue b/vue/src/components/RecipeContextMenu.vue index dee82fda..bf22a952 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) => {