From 42f1b2eeff5b179d1c2b5aeb859ec599713ff222 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Sun, 18 Jul 2021 20:54:27 -0600 Subject: [PATCH] =?UTF-8?q?dejar=20de=20forzar=20la=20adici=C3=B3n=20de=20?= =?UTF-8?q?"Otra"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../delete/categoria-delete-dialog.component.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts b/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts index 14225df..bf4e321 100644 --- a/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts +++ b/src/main/webapp/app/entities/categoria/delete/categoria-delete-dialog.component.ts @@ -26,7 +26,6 @@ export class CategoriaDeleteDialogComponent { } confirmDelete(categoria: ICategoria): void { - this.ensureNulaExists(); const categoriaNula = new Categoria(0, 'Otra', EstadoCategoria.ACTIVE); this.getEncuestas(categoria); if (this.encuestas) { @@ -40,15 +39,6 @@ export class CategoriaDeleteDialogComponent { this.activeModal.close('deleted'); }); } - ensureNulaExists(): void { - const categoriaNula = new Categoria(0, 'Otra', EstadoCategoria.ACTIVE); - const categoria = this.categoriaService.find(0); - if (categoria) { - this.categoriaService.update(categoriaNula); - } else { - this.categoriaService.create(categoriaNula); - } - } protected getEncuestas(categoria: ICategoria): void { this.encuestaService.query().subscribe(res => {