mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
Shopping list fixes (#376)
* Refactor recipe to snake case * Initialize raw ingredients Fixes #356
This commit is contained in:
parent
5e89903b2f
commit
72bc97eb24
@ -22,7 +22,7 @@
|
||||
|
||||
<v-list-item-group color="primary">
|
||||
<v-list-item
|
||||
v-for="(item, i) in recipe.recipeIngredient"
|
||||
v-for="(item, i) in recipe.recipe_ingredient"
|
||||
:key="i"
|
||||
>
|
||||
<v-list-item-content>
|
||||
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user