Stop auto-refresh logs / tasks after close component

This commit is contained in:
shamoon 2023-12-22 21:25:09 -08:00
parent 7570945cf0
commit 1873f3d735
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) {