From 58c200aca0e0ec37e1af3b140bec3b8c1892ccb3 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 22 Sep 2020 15:03:23 +0200 Subject: [PATCH] Another attempt to fix parameter --- projects/common/src/fm/services/item.service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index 0abe934..052d2a2 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -57,10 +57,8 @@ export class ItemService { getItemData(code: string,limit?:number): Observable { var params = new HttpParams(); - if(limit) { - params.append("limit", limit.toFixed(0)); - } - return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data/`,{ params: params }); + if(limit) params.append("limit", limit.toString()); + return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params }); } getItemByCodeAndType(code: string, itemType: string): Observable {