Refactor recipe to snake case

This commit is contained in:
Florian Dupret 2021-04-30 13:09:11 +02:00
commit 9016ed3163

View file

@ -22,7 +22,7 @@
<v-list-item-group color="primary"> <v-list-item-group color="primary">
<v-list-item <v-list-item
v-for="(item, i) in recipe.recipeIngredient" v-for="(item, i) in recipe.recipe_ingredient"
:key="i" :key="i"
> >
<v-list-item-content> <v-list-item-content>
@ -76,7 +76,7 @@ export default {
}, },
getRawIngredients() { getRawIngredients() {
this.ingredients.forEach(element => { this.ingredients.forEach(element => {
this.rawIngredients.push(element.recipeIngredient); this.rawIngredients.push(element.recipe_ingredient);
}); });
this.rawIngredients = this.rawIngredients.flat(); this.rawIngredients = this.rawIngredients.flat();