Aw-6020 Fix getChildItemListCount
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter Bastiani 2024-08-29 09:37:03 +02:00
parent 2719f2fcf4
commit 4ab1e43d40
2 changed files with 4 additions and 2 deletions

View File

@ -148,7 +148,7 @@ export class AppCommonEffects {
ofType(appCommonActions.VIEWITEM), ofType(appCommonActions.VIEWITEM),
withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)), withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)),
switchMap(([action, itemtypes]) => { switchMap(([action, itemtypes]) => {
const a = action as appCommonActions.EditItem; const a = action as appCommonActions.ViewItem;
const itemType = itemtypes[a.item.itemType]; const itemType = itemtypes[a.item.itemType];
const viewer = itemType.viewer; const viewer = itemType.viewer;
const editor = itemType.editor; const editor = itemType.editor;

View File

@ -115,7 +115,9 @@ export class ItemService {
getChildItemListCount(parentcode: string, itemType?: string,dataFilter?: any): Observable<number> { getChildItemListCount(parentcode: string, itemType?: string,dataFilter?: any): Observable<number> {
let params = new HttpParams(); let params = new HttpParams();
params = params.append("it", itemType); if(itemType != null) {
params = params.append("it", itemType);
}
if (dataFilter != null) { if (dataFilter != null) {
params = params.append("df", JSON.stringify(dataFilter)); params = params.append("df", JSON.stringify(dataFilter));
} }