From 7c2ae129d7afb73155b74192ea0c7845a09d0c47 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 26 Mar 2022 14:18:16 -0700 Subject: [PATCH] rxjs compatibility --- src-ui/src/app/services/document-list-view.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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[]) {