mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
titleInput may be undefined if in a different tab
This commit is contained in:
parent
3e35d9cd8c
commit
06253ed8f2
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ export class DocumentDetailComponent implements OnInit, OnDestroy, DirtyComponen
|
||||||
.subscribe(({updateResult, nextDocId, closeResult}) => {
|
.subscribe(({updateResult, nextDocId, closeResult}) => {
|
||||||
if (closeResult) {
|
if (closeResult) {
|
||||||
this.router.navigate(['documents', nextDocId])
|
this.router.navigate(['documents', nextDocId])
|
||||||
this.titleInput.focus()
|
this.titleInput?.focus()
|
||||||
}
|
}
|
||||||
}, error => {
|
}, error => {
|
||||||
this.networkActive = false
|
this.networkActive = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue