Fixed pagination issues on item mapper

This commit is contained in:
Alexandre Vryghem
2023-11-15 23:31:54 +01:00
parent 404ccd9b0e
commit 45e8977db7

View File

@@ -144,7 +144,9 @@ export class CollectionItemMapperComponent implements OnInit {
this.shouldUpdate$.next(false); this.shouldUpdate$.next(false);
} }
return this.itemDataService.findListByHref(collectionRD.payload._links.mappedItems.href, Object.assign(options, { return this.itemDataService.findListByHref(collectionRD.payload._links.mappedItems.href, Object.assign(options, {
sort: this.defaultSortOptions currentPage: options.pagination.currentPage,
elementsPerPage: options.pagination.pageSize,
sort: this.defaultSortOptions,
}),!shouldUpdate, false, followLink('owningCollection')).pipe( }),!shouldUpdate, false, followLink('owningCollection')).pipe(
getAllSucceededRemoteData() getAllSucceededRemoteData()
); );