diff --git a/projects/common/src/fm/effects/app-common.effects.ts b/projects/common/src/fm/effects/app-common.effects.ts index 9d49c25..2fe1dac 100644 --- a/projects/common/src/fm/effects/app-common.effects.ts +++ b/projects/common/src/fm/effects/app-common.effects.ts @@ -62,9 +62,8 @@ export class AppCommonEffects { @Effect() initUserPackages$:Observable = 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))) )