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 861079037..f03270547 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 @@ -232,7 +232,7 @@ export class DocumentDetailComponent implements OnInit, OnDestroy, DirtyComponen .subscribe(({updateResult, nextDocId, closeResult}) => { if (closeResult) { this.router.navigate(['documents', nextDocId]) - this.titleInput.focus() + this.titleInput?.focus() } }, error => { this.networkActive = false