mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Cancel possibly slow queries on leave doc details
This commit is contained in:
parent
e50d30876a
commit
b5dec87a62
1 changed files with 5 additions and 5 deletions
|
|
@ -213,22 +213,22 @@ export class DocumentDetailComponent
|
||||||
|
|
||||||
this.correspondentService
|
this.correspondentService
|
||||||
.listAll()
|
.listAll()
|
||||||
.pipe(first())
|
.pipe(first(), takeUntil(this.unsubscribeNotifier))
|
||||||
.subscribe((result) => (this.correspondents = result.results))
|
.subscribe((result) => (this.correspondents = result.results))
|
||||||
|
|
||||||
this.documentTypeService
|
this.documentTypeService
|
||||||
.listAll()
|
.listAll()
|
||||||
.pipe(first())
|
.pipe(first(), takeUntil(this.unsubscribeNotifier))
|
||||||
.subscribe((result) => (this.documentTypes = result.results))
|
.subscribe((result) => (this.documentTypes = result.results))
|
||||||
|
|
||||||
this.storagePathService
|
this.storagePathService
|
||||||
.listAll()
|
.listAll()
|
||||||
.pipe(first())
|
.pipe(first(), takeUntil(this.unsubscribeNotifier))
|
||||||
.subscribe((result) => (this.storagePaths = result.results))
|
.subscribe((result) => (this.storagePaths = result.results))
|
||||||
|
|
||||||
this.userService
|
this.userService
|
||||||
.listAll()
|
.listAll()
|
||||||
.pipe(first())
|
.pipe(first(), takeUntil(this.unsubscribeNotifier))
|
||||||
.subscribe((result) => (this.users = result.results))
|
.subscribe((result) => (this.users = result.results))
|
||||||
|
|
||||||
this.route.paramMap
|
this.route.paramMap
|
||||||
|
|
@ -406,7 +406,7 @@ export class DocumentDetailComponent
|
||||||
) {
|
) {
|
||||||
this.documentsService
|
this.documentsService
|
||||||
.getSuggestions(doc.id)
|
.getSuggestions(doc.id)
|
||||||
.pipe(first())
|
.pipe(first(), takeUntil(this.unsubscribeNotifier))
|
||||||
.subscribe({
|
.subscribe({
|
||||||
next: (result) => {
|
next: (result) => {
|
||||||
this.suggestions = result
|
this.suggestions = result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue