mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-14 12:07:12 +00:00
titleInput may be undefined if in a different tab
This commit is contained in:
1 parent
3e35d9cd8c
commit
06253ed8f2
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user