From a06cbe1759422396c483a347ee17d74a9e05d67b Mon Sep 17 00:00:00 2001 From: bastien ollier Date: Mon, 17 Jun 2024 14:15:42 +0200 Subject: [PATCH] add redirection --- src/app/recipe-add/recipe-add.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/recipe-add/recipe-add.component.ts b/src/app/recipe-add/recipe-add.component.ts index 5e52144..4e39fb8 100644 --- a/src/app/recipe-add/recipe-add.component.ts +++ b/src/app/recipe-add/recipe-add.component.ts @@ -57,6 +57,7 @@ export class RecipeAddComponent { } else { this.recipes.edit({ id: this.#recipeId, ...partial }); } + this.router.navigateByUrl('recipes'); } onAddIngredient(): void {