Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

TypeScript fixes

Michael Shamoon8a6489879862
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.ts b/src-ui/src/app/components/app-frame/app-frame.component.ts
index 18e30b0cd..91177fc54 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.ts
+++ b/src-ui/src/app/components/app-frame/app-frame.component.ts
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
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 { debounceTime, distinctUntilChanged, map, switchMap } from 'rxjs/operators';
import { PaperlessDocument } from 'src/app/data/paperless-document';
@@ -86,7 +86,7 @@ export class AppFrameComponent implements OnInit {
while (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([""])
}
}