Commit eb0f4764a98ab7aa46e60fa012428d975c0b4602
Exists in
develop
Merge branch 'develop' into 'develop'
Fix al cerrar modales See merge request !47
Showing
1 changed file
Show diff stats
src/app/modules/seleccion-articulos/seleccion-articulos.component.ts
| ... | ... | @@ -46,7 +46,9 @@ export class SeleccionArticulosComponent implements OnInit, OnDestroy { |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | ngOnDestroy() { |
| 49 | - if (this.modalRef) this.modalRef.hide(); | |
| 49 | + for (let i = 1; i <= this.modalService.getModalsCount(); i++) { | |
| 50 | + this.modalService.hide(i); | |
| 51 | + } | |
| 50 | 52 | } |
| 51 | 53 | |
| 52 | 54 | getCategorias() { |