From 89cc24f3034aa8b4e8f24647c41173a7c3734e39 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sat, 14 Dec 2019 14:07:36 -0500 Subject: WIP-Changes made for demo, should be reviewed and merged as needed. --- recipeBuddy/src/app/recipe-card/recipe-card.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'recipeBuddy/src/app/recipe-card') diff --git a/recipeBuddy/src/app/recipe-card/recipe-card.component.ts b/recipeBuddy/src/app/recipe-card/recipe-card.component.ts index 490f2ab..bb6fc9a 100644 --- a/recipeBuddy/src/app/recipe-card/recipe-card.component.ts +++ b/recipeBuddy/src/app/recipe-card/recipe-card.component.ts @@ -63,9 +63,8 @@ export class RecipeCardComponent implements OnInit { if(txt == true) { alert(this.recipe.name + " was deleted."); - this.restService.deleteRecipe(id).subscribe(); + this.restService.deleteRecipe(id).subscribe(res=> window.location.reload(), err => console.log(err)); } - window.location.reload(); } } -- cgit v1.1