mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	TypeScript fixes
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
import { Component, OnInit } from '@angular/core';
 | 
					import { Component, OnInit } from '@angular/core';
 | 
				
			||||||
import { FormControl } from '@angular/forms';
 | 
					import { FormControl } from '@angular/forms';
 | 
				
			||||||
import { ActivatedRoute, Router } from '@angular/router';
 | 
					import { ActivatedRoute, Router, Params } from '@angular/router';
 | 
				
			||||||
import { from, Observable, Subscription, BehaviorSubject } from 'rxjs';
 | 
					import { from, Observable, Subscription, BehaviorSubject } from 'rxjs';
 | 
				
			||||||
import { debounceTime, distinctUntilChanged, map, switchMap } from 'rxjs/operators';
 | 
					import { debounceTime, distinctUntilChanged, map, switchMap } from 'rxjs/operators';
 | 
				
			||||||
import { PaperlessDocument } from 'src/app/data/paperless-document';
 | 
					import { PaperlessDocument } from 'src/app/data/paperless-document';
 | 
				
			||||||
@@ -86,7 +86,7 @@ export class AppFrameComponent implements OnInit {
 | 
				
			|||||||
    while (route.firstChild) {
 | 
					    while (route.firstChild) {
 | 
				
			||||||
      route = route.firstChild
 | 
					      route = route.firstChild
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (route.component == DocumentDetailComponent && (route.params as BehaviorSubject).getValue()['id'] == d.id) {
 | 
					    if (route.component == DocumentDetailComponent && (route.params as BehaviorSubject<Params>).getValue()['id'] == d.id) {
 | 
				
			||||||
      this.router.navigate([""])
 | 
					      this.router.navigate([""])
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user