fix log viewer for empty logs

This commit is contained in:
jonaswinkler
2021-02-06 18:51:31 +01:00
parent d2c34fb9c7
commit 0e76441684
2 changed files with 3 additions and 3 deletions

View File

@@ -10,8 +10,6 @@ export class LogsComponent implements OnInit {
constructor(private logService: LogService) { }
@ViewChild('logContainer') private logContainer: ElementRef
logs: string[] = []
logFiles: string[] = []
@@ -31,6 +29,8 @@ export class LogsComponent implements OnInit {
reloadLogs() {
this.logService.get(this.activeLog).subscribe(result => {
this.logs = result
}, error => {
this.logs = []
})
}