diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index 38f812e0..d950d621 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -21,7 +21,7 @@ const actions: ActionTree = { try { const {token, oms} = payload; dispatch("setUserInstanceUrl", oms); - + // Getting the permissions list from server const permissionId = process.env.VUE_APP_PERMISSION_ID; // Prepare permissions list @@ -47,16 +47,16 @@ const actions: ActionTree = { return Promise.reject(new Error(permissionError)); } } - + const userProfile = await UserService.getUserProfile(token); - + /* ---- Guard clauses ends here --- */ - + setPermissions(appPermissions); if (userProfile.userTimeZone) { Settings.defaultZone = userProfile.userTimeZone; } - + // TODO user single mutation commit(types.USER_INFO_UPDATED, userProfile); commit(types.USER_PERMISSIONS_UPDATED, appPermissions); diff --git a/src/store/modules/util/actions.ts b/src/store/modules/util/actions.ts index 1dde5307..ceaec87a 100644 --- a/src/store/modules/util/actions.ts +++ b/src/store/modules/util/actions.ts @@ -368,7 +368,7 @@ const actions: ActionTree = { roleTypeId: 'INTERNAL_ORGANIZATIO' }, noConditionFind: 'Y', - // fieldList: ["facilityGroupId", "facilityGroupTypeId", "facilityGroupName", "description"], + fieldList: ["partyId"], viewSize: 1 }