mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-11 02:27:13 +00:00
Fix: dont display trashed docs in doc links
This commit is contained in:
1 parent
fa0ab0de27
commit
3b1dffe0dc
3 files changed
+17
-15
No files matched your search
@@ -71,9 +71,9 @@ export class DocumentLinkComponent
|
||||
.pipe(takeUntil(this.unsubscribeNotifier))
|
||||
.subscribe((documentResults) => {
|
||||
this.loading = false
|
||||
this.selectedDocuments = documentIDs.map((id) =>
|
||||
documentResults.results.find((d) => d.id === id)
|
||||
)
|
||||
this.selectedDocuments = documentIDs
|
||||
.map((id) => documentResults.results.find((d) => d.id === id))
|
||||
.filter((d) => d)
|
||||
super.writeValue(documentIDs)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user