fixed ingredient display on preview

This commit is contained in:
smilerz 2021-03-29 12:51:14 -05:00
parent c8a4861df8
commit 3da74505d6

View File

@ -958,7 +958,8 @@
unit: {id: Math.random() * 1000, text: response.body.unit}, unit: {id: Math.random() * 1000, text: response.body.unit},
amount: String(response.body.amount), amount: String(response.body.amount),
ingredient: {id: Math.random() * 1000, text: response.body.food}, ingredient: {id: Math.random() * 1000, text: response.body.food},
note: response.body.note note: response.body.note,
original: v
} }
this.recipe_json.recipeIngredient.push(new_ingredient) this.recipe_json.recipeIngredient.push(new_ingredient)
}).catch((err) => { }).catch((err) => {