mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed multi ingerdient parser
This commit is contained in:
@@ -331,12 +331,14 @@ function parseAndInsertIngredients() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
Promise.allSettled(promises).then(r => {
|
Promise.allSettled(promises).then(r => {
|
||||||
|
console.log(r)
|
||||||
r.forEach(i => {
|
r.forEach(i => {
|
||||||
|
console.log(i)
|
||||||
step.value.ingredients.push({
|
step.value.ingredients.push({
|
||||||
amount: i.amount,
|
amount: i.value.amount,
|
||||||
food: i.food,
|
food: i.value.food,
|
||||||
unit: i.unit,
|
unit: i.value.unit,
|
||||||
note: i.note
|
note: i.value.note
|
||||||
} as Ingredient)
|
} as Ingredient)
|
||||||
})
|
})
|
||||||
ingredientTextInput.value = ""
|
ingredientTextInput.value = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user