add redirection

This commit is contained in:
bastien ollier committed 2024-06-17 14:15:42 +02:00
1 parent 0ea71914ed
commit a06cbe1759
1 file changed
+1
@@ -57,6 +57,7 @@ export class RecipeAddComponent {
} else { } else {
this.recipes.edit({ id: this.#recipeId, ...partial }); this.recipes.edit({ id: this.#recipeId, ...partial });
} }
this.router.navigateByUrl('recipes');
} }
onAddIngredient(): void { onAddIngredient(): void {