From c18386b9b52344c4909636b38f8a1ab80e4b6bae Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 22 Jul 2023 12:59:31 +0200 Subject: [PATCH] fixed copied ingredients being linked together --- vue/src/apps/RecipeEditView/RecipeEditView.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index 4315867d..2b3b6745 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -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) } },