Fix responsetype
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

2022.01
Willem Dantuma 2020-09-22 19:29:44 +02:00
parent baa0166fc8
commit c893a2820b
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export class ItemService {
getItemData(code: string,limit?:number): Observable<ArrayBuffer> {
var params = new HttpParams();
if(limit) params=params.append("limit", limit.toString());
return this.httpClient.get<ArrayBuffer>(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params });
return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params,responseType: 'arraybuffer' });
}
getItemByCodeAndType(code: string, itemType: string): Observable<IItem> {