fixed copying recipes with properties

This commit is contained in:
vabene1111 2023-12-02 18:58:44 +01:00
parent b069a49954
commit fd978f9c19

View File

@ -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) => {