mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 05:39:00 -05:00
fixed copied ingredients being linked together
This commit is contained in:
@@ -1281,6 +1281,7 @@ export default {
|
||||
},
|
||||
duplicateIngredient: function (step, ingredient, new_index) {
|
||||
delete ingredient.id
|
||||
ingredient = JSON.parse(JSON.stringify(ingredient))
|
||||
step.ingredients.splice(new_index < 0 ? 0 : new_index, 0, ingredient)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user