AW-803 Pass array (take 2).
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
e3714f4cac
commit
63ffdf2519
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user