hacer que el metodo de eliminacion use la categoria entera

esto es para eventualmente reemplazarla por un update
This commit is contained in:
Eduardo Quiros 2021-07-14 20:39:01 -06:00
parent fa906eb8dc
commit 3fd224f4d4
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ export class CategoriaDeleteDialogComponent {
this.activeModal.dismiss();
}
confirmDelete(id: number): void {
this.categoriaService.delete(id).subscribe(() => {
confirmDelete(categoria: ICategoria): void {
this.categoriaService.delete(categoria.id!).subscribe(() => {
this.activeModal.close('deleted');
});
}