diff --git a/src/main/webapp/app/entities/encuesta/complete/complete.component.ts b/src/main/webapp/app/entities/encuesta/complete/complete.component.ts index 11899e4..02eb333 100644 --- a/src/main/webapp/app/entities/encuesta/complete/complete.component.ts +++ b/src/main/webapp/app/entities/encuesta/complete/complete.component.ts @@ -79,6 +79,7 @@ export class EncuestaCompleteComponent implements OnInit { checkboxes[i].addEventListener('click', e => { if ((e.target as HTMLInputElement).checked) { (e.target as HTMLElement).offsetParent!.classList.add('ds-survey--closed-option--active'); + debugger; } else { (e.target as HTMLElement).offsetParent!.classList.remove('ds-survey--closed-option--active'); } @@ -128,6 +129,9 @@ export class EncuestaCompleteComponent implements OnInit { this.isLoading = false; } ); + if (this.ePreguntas!.length == 0) { + this.previousState(); + } } previousState(): void {