From 88f2177e9b230f8909ad6dfa955db01b36c0fcc9 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 11 Apr 2025 14:47:09 +0200 Subject: [PATCH] fixed multi ingerdient parser --- vue3/src/components/inputs/StepEditor.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vue3/src/components/inputs/StepEditor.vue b/vue3/src/components/inputs/StepEditor.vue index b9e6278a7..265bf2a1a 100644 --- a/vue3/src/components/inputs/StepEditor.vue +++ b/vue3/src/components/inputs/StepEditor.vue @@ -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 = ""