Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

rxjs compatibility

Michael Shamoon7c2ae129d7af
diff --git a/src-ui/src/app/services/document-list-view.service.ts b/src-ui/src/app/services/document-list-view.service.ts
index a77ce2509..e33dea1d6 100644
--- a/src-ui/src/app/services/document-list-view.service.ts
+++ b/src-ui/src/app/services/document-list-view.service.ts
@@ -143,8 +143,8 @@ export class DocumentListViewService {
activeListViewState.sortReverse,
activeListViewState.filterRules
)
- .subscribe(
- (result) => {
+ .subscribe({
+ next: (result) => {
this.isReloading = false
activeListViewState.collectionSize = result.count
activeListViewState.documents = result.results
@@ -153,7 +153,7 @@ export class DocumentListViewService {
}
this.rangeSelectionAnchorIndex = this.lastRangeSelectionToIndex = null
},
- (error) => {
+ error: (error) => {
this.isReloading = false
if (activeListViewState.currentPage != 1 && error.status == 404) {
// this happens when applying a filter: the current page might not be available anymore due to the reduced result set.
@@ -162,8 +162,8 @@ export class DocumentListViewService {
} else {
this.error = error.error
}
- }
- )
+ },
+ })
}
set filterRules(filterRules: FilterRule[]) {