Skip to content

Commit

Permalink
Merge pull request #202 from amansinghbais/201-groupName-for-picker
Browse files Browse the repository at this point in the history
Fixed: facility login user name not showing up (#201)
  • Loading branch information
ymaheshwari1 authored Feb 22, 2024
2 parents e4fabf2 + e15e98b commit 27e0c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/party/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const actions: ActionTree<PartyState, RootState> = {
"partyId": unavailablePickersPartyIds,
"partyId_op": 'in'
},
"fieldList": ["firstName", "lastName", "partyId"],
"fieldList": ["firstName", "groupName", "lastName", "partyId"],
"entityName": "PartyNameView",
"viewSize": unavailablePickersPartyIds.length,
"distinct": "Y",
Expand All @@ -29,7 +29,7 @@ const actions: ActionTree<PartyState, RootState> = {
if (resp.status == 200 && !hasError(resp) && resp.data.count > 0) {
const pickersDetails = resp.data.docs;
const pickersDetailsByPartyId = pickersDetails.reduce((pickersDetailsByPartyId: any, pickerDetails: any) => {
pickerDetails.fullName = pickerDetails.firstName + ' ' + pickerDetails.lastName;
pickerDetails.fullName = pickerDetails.groupName ? pickerDetails.groupName : pickerDetails.firstName + ' ' + pickerDetails.lastName;
pickersDetailsByPartyId[pickerDetails.partyId] = pickerDetails;
return pickersDetailsByPartyId;
}, {});
Expand Down

0 comments on commit 27e0c1f

Please sign in to comment.