mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
titleInput may be undefined if in a different tab
This commit is contained in:
parent
eb051cd53f
commit
6fd8f88b4e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user