From f83dba4eff569a11f8f4b15bb3977316e5ba833f Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Thu, 24 Jan 2019 15:45:55 +0100 Subject: [PATCH] Fix build error --- src/app/core/data/data.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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$; } }