Improved implementation to retrieve user packages.
	
		
			
	
		
	
	
		
	
		
			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:
		| @@ -62,9 +62,8 @@ export class AppCommonEffects { | ||||
|   @Effect() | ||||
|   initUserPackages$:Observable<Action> = this.actions$.pipe( | ||||
|     ofType(appCommonActions.INITUSERPACKAGES), | ||||
|     withLatestFrom(this.store$.select(appCommonReducers.SelectGetUser)), | ||||
|     switchMap(([action,user]) => { | ||||
|       return this.itemService$.getChildItemList(user.code+":USER_PACKAGES","vnd.farmmaps.itemtype.package").pipe( | ||||
|     switchMap(() => { | ||||
|       return this.itemService$.getItemList('vnd.farmmaps.itemtype.package').pipe( | ||||
|         switchMap((items) => of(new appCommonActions.InitUserPackagesSuccess(items))), | ||||
|         catchError(error =>  of(new appCommonActions.Fail(error))) | ||||
|       ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user