Skip to content

Commit

Permalink
Improved: added fieldlist for fetching organization and reverted the …
Browse files Browse the repository at this point in the history
…unused changes (#278)
  • Loading branch information
amansinghbais committed Jun 25, 2024
1 parent 921aa6f commit 666c696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const actions: ActionTree<UserState, RootState> = {
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
Expand All @@ -47,16 +47,16 @@ const actions: ActionTree<UserState, RootState> = {
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);
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/util/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ const actions: ActionTree<UtilState, RootState> = {
roleTypeId: 'INTERNAL_ORGANIZATIO'
},
noConditionFind: 'Y',
// fieldList: ["facilityGroupId", "facilityGroupTypeId", "facilityGroupName", "description"],
fieldList: ["partyId"],
viewSize: 1
}

Expand Down

0 comments on commit 666c696

Please sign in to comment.