fixed copying recipes with properties
This commit is contained in:
parent
b069a49954
commit
fd978f9c19
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user