diff --git a/src/app/admin-component/update-del-restau/update-del-restau.component.ts b/src/app/admin-component/update-del-restau/update-del-restau.component.ts index ea7d325..34ff3b2 100644 --- a/src/app/admin-component/update-del-restau/update-del-restau.component.ts +++ b/src/app/admin-component/update-del-restau/update-del-restau.component.ts @@ -15,9 +15,7 @@ export class UpdateDelRestauComponent implements OnInit { this.restauList = []; } - ngOnInit(): void { - - } + ngOnInit(): void {} saveRestauList(event : any){ @@ -28,10 +26,7 @@ export class UpdateDelRestauComponent implements OnInit { deleteRestau(idRestau : number | undefined){ this.apiBackService.deleteRestau(idRestau).subscribe( resp =>{ - - this.restauList = this.restauList.filter(restaus => restaus.id != idRestau) - }); } diff --git a/src/app/header/components/nav-bar/nav-bar.component.html b/src/app/header/components/nav-bar/nav-bar.component.html index fc3055f..8fadc20 100644 --- a/src/app/header/components/nav-bar/nav-bar.component.html +++ b/src/app/header/components/nav-bar/nav-bar.component.html @@ -10,7 +10,7 @@