Make itemtype optional
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

feature/MinimizeSolution
Willem Dantuma 2020-02-27 18:01:17 +01:00
parent 795e8fdf0e
commit 841999daba
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ export class ItemService {
getChildItemList(parentcode: string, itemType: string, dataFilter?: any, level: number = 1, deep: boolean = true): Observable<IItem[]> {
var params = new HttpParams();
params = params.append("it", itemType);
if(itemType != null) {
params = params.append("it", itemType);
}
if (dataFilter != null) {
params = params.append("df", JSON.stringify(dataFilter));
}