AW-803 Pass string array.
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Peter Bastiani 2020-01-22 13:57:56 +01:00
parent 2fca6d1fba
commit e8537ba916

View File

@ -17,7 +17,7 @@ export class CodeListItemService {
getCodeListItems(codelist: string[], codegroup?: string, dataFilter?: any): Observable<ICodeListItem[]> { getCodeListItems(codelist: string[], codegroup?: string, dataFilter?: any): Observable<ICodeListItem[]> {
var params = new HttpParams(); var params = new HttpParams();
params = params.append("cl", codelist.join(",")); params = params.append("cl", codelist);
if (codegroup) params = params.append("g", codegroup); if (codegroup) params = params.append("g", codegroup);
if (dataFilter) params = params.append("df", dataFilter); if (dataFilter) params = params.append("df", dataFilter);
return this.httpClient.get<ICodeListItem[]>(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params }); return this.httpClient.get<ICodeListItem[]>(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params });