diff --git a/src/app/core/data/data.service.ts b/src/app/core/data/data.service.ts index af008f3399..f830709936 100644 --- a/src/app/core/data/data.service.ts +++ b/src/app/core/data/data.service.ts @@ -51,7 +51,7 @@ export abstract class DataService return this.buildHrefFromFindOptions(result, args, options); } - protected buildHrefFromFindOptions(href: Observable, args: string[], options: FindAllOptions): Observable { + protected buildHrefFromFindOptions(href$: Observable, args: string[], options: FindAllOptions): Observable { if (hasValue(options.currentPage) && typeof options.currentPage === 'number') { /* TODO: this is a temporary fix for the pagination start index (0 or 1) discrepancy between the rest and the frontend respectively */ @@ -71,9 +71,9 @@ export abstract class DataService } if (isNotEmpty(args)) { - return href.pipe(map((href: string) => new URLCombiner(href, `?${args.join('&')}`).toString())); + return href$.pipe(map((href: string) => new URLCombiner(href, `?${args.join('&')}`).toString())); } else { - return href; + return href$; } }