Skip to content

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

Typescript syntax fix

Michael Shamooncbf844e7db58
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts
index 501434ffd..fcbbf840c 100644
--- a/src-ui/src/app/components/document-detail/document-detail.component.ts
+++ b/src-ui/src/app/components/document-detail/document-detail.component.ts
@@ -49,7 +49,7 @@ export class DocumentDetailComponent implements OnInit {
})
@ViewChild('nav') nav: NgbNav
- @ViewChild('pdfPreview') set pdfPreview(element): void {
+ @ViewChild('pdfPreview') set pdfPreview(element) {
// this gets called when compontent added or removed from DOM
if (element && element.nativeElement.offsetParent !== null) { // its visible