Fix: Stop auto-refresh logs / tasks after close (#5089)

This commit is contained in:
shamoon 2023-12-23 07:47:18 -08:00 committed by GitHub
parent 5d24fb12c2
commit c4f9da2e61
2 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ export class LogsComponent implements OnInit, AfterViewChecked, OnDestroy {
ngOnDestroy(): void {
this.unsubscribeNotifier.next(true)
this.unsubscribeNotifier.complete()
clearInterval(this.autoRefreshInterval)
}
reloadLogs() {

View File

@ -46,6 +46,7 @@ export class TasksComponent
ngOnDestroy() {
this.tasksService.cancelPending()
clearInterval(this.autoRefreshInterval)
}
dismissTask(task: PaperlessTask) {