From 72bc97eb2400b4c88e6dd79b596bbb5ef435c386 Mon Sep 17 00:00:00 2001 From: sephrat <34862846+sephrat@users.noreply.github.com> Date: Fri, 30 Apr 2021 18:44:24 +0200 Subject: [PATCH] Shopping list fixes (#376) * Refactor recipe to snake case * Initialize raw ingredients Fixes #356 --- frontend/src/components/MealPlan/ShoppingListDialog.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/MealPlan/ShoppingListDialog.vue b/frontend/src/components/MealPlan/ShoppingListDialog.vue index 8bd2da175cba..a3b635402575 100644 --- a/frontend/src/components/MealPlan/ShoppingListDialog.vue +++ b/frontend/src/components/MealPlan/ShoppingListDialog.vue @@ -22,7 +22,7 @@ @@ -75,8 +75,9 @@ export default { this.getRawIngredients(); }, getRawIngredients() { + this.rawIngredients = []; this.ingredients.forEach(element => { - this.rawIngredients.push(element.recipeIngredient); + this.rawIngredients.push(element.recipe_ingredient); }); this.rawIngredients = this.rawIngredients.flat();