From 45d11a8a0ece767dfa68a888fc714056ae4dc982 Mon Sep 17 00:00:00 2001 From: bastien ollier Date: Mon, 24 Jun 2024 11:03:37 +0200 Subject: [PATCH] add submit button with mat angular --- src/app/recipe-add/recipe-add.component.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/recipe-add/recipe-add.component.ts b/src/app/recipe-add/recipe-add.component.ts index c0ee157..1e0e2d7 100644 --- a/src/app/recipe-add/recipe-add.component.ts +++ b/src/app/recipe-add/recipe-add.component.ts @@ -82,12 +82,8 @@ export class RecipeAddComponent { } const id = parseInt(value.selectedIngredient!); if (this.ingredientEntries.find((ingredient) => ingredient.idIngredient === id)) { - console.log("oh"); return; } - console.log("ah"); - console.log(this.ingredients.find(v => v.id === id)?.name) - console.log(this.ingredients); this.ingredientEntries.push({ idIngredient: id, idRecipe: -1,