AW-803 Pass array (take 2).
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Peter (extern) 2020-01-22 14:18:09 +01:00
parent e3714f4cac
commit 63ffdf2519

View File

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