fixed multi ingerdient parser

This commit is contained in:
vabene1111
2025-04-11 14:47:09 +02:00
parent 675d7a0647
commit 88f2177e9b

View File

@@ -331,12 +331,14 @@ function parseAndInsertIngredients() {
}
})
Promise.allSettled(promises).then(r => {
console.log(r)
r.forEach(i => {
console.log(i)
step.value.ingredients.push({
amount: i.amount,
food: i.food,
unit: i.unit,
note: i.note
amount: i.value.amount,
food: i.value.food,
unit: i.value.unit,
note: i.value.note
} as Ingredient)
})
ingredientTextInput.value = ""