Update log-console.component.ts

This commit is contained in:
piotrpekala7 2021-02-15 17:10:37 +01:00
parent 703ceb177b
commit 0bc000f096

View File

@ -136,7 +136,7 @@ export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy {
}
ngAfterViewInit() {
this.console.nativeElement.scrollTop = this.console.nativeElement.scrollHeight;
if (this.console.nativeElement) this.console.nativeElement.scrollTop = this.console.nativeElement.scrollHeight;
}
ngOnDestroy() {