mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix: Stop auto-refresh logs / tasks after close (#5089)
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon