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

This commit is contained in:
shamoon authored and GitHub committed 2023-12-23 07:47:18 -08:00
1 parent 7570945cf0
commit 945fb675e9
2 files changed
+2

No files matched your search

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