Only return logs that exist

This commit is contained in:
shamoon
2023-02-23 14:32:58 -08:00
parent 2382cae737
commit 1ea9c37dd1
3 changed files with 26 additions and 7 deletions

View File

@@ -38,14 +38,14 @@ export class LogsComponent implements OnInit, AfterViewChecked {
}
reloadLogs() {
this.logService.get(this.activeLog).subscribe(
(result) => {
this.logService.get(this.activeLog).subscribe({
next: (result) => {
this.logs = result
},
(error) => {
error: () => {
this.logs = []
}
)
},
})
}
getLogLevel(log: string) {