diff --git a/frontend/api/class-interfaces/recipes.ts b/frontend/api/class-interfaces/recipes.ts index 2aa3525731a0..8eb59738970e 100644 --- a/frontend/api/class-interfaces/recipes.ts +++ b/frontend/api/class-interfaces/recipes.ts @@ -46,14 +46,15 @@ export interface Unit { export interface Food { name: string; - description: string; + description?: string; } export interface Ingredient { + referenceId: string; title: string; note: string; - unit: Unit; - food: Food; + unit: Unit | null; + food: Food | null; disableAmount: boolean; quantity: number; } diff --git a/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue b/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue index ef09e8d2778b..b925cf429408 100644 --- a/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue +++ b/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue @@ -38,7 +38,11 @@ item-text="name" class="mx-1" placeholder="Choose Unit" + @keyup.enter="handleUnitEnter" > +