mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 01:57:08 +01:00
Merge pull request #3925 from paperless-ngx/fix/cancel-slow-queries
This commit is contained in:
commit
6a8bdbd4f6
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