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 {