Aw-6020 Fix getChildItemListCount
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
2719f2fcf4
commit
4ab1e43d40
@ -148,7 +148,7 @@ export class AppCommonEffects {
|
||||
ofType(appCommonActions.VIEWITEM),
|
||||
withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)),
|
||||
switchMap(([action, itemtypes]) => {
|
||||
const a = action as appCommonActions.EditItem;
|
||||
const a = action as appCommonActions.ViewItem;
|
||||
const itemType = itemtypes[a.item.itemType];
|
||||
const viewer = itemType.viewer;
|
||||
const editor = itemType.editor;
|
||||
|
@ -115,7 +115,9 @@ export class ItemService {
|
||||
|
||||
getChildItemListCount(parentcode: string, itemType?: string,dataFilter?: any): Observable<number> {
|
||||
let 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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user