From e15e98b54c523a39702ed58c6aac13ed676764bd Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Thu, 22 Feb 2024 14:58:36 +0530 Subject: [PATCH] Fixed: facility login user name not showing up (#201) --- src/store/modules/party/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/party/actions.ts b/src/store/modules/party/actions.ts index 447158f..723bc9e 100644 --- a/src/store/modules/party/actions.ts +++ b/src/store/modules/party/actions.ts @@ -18,7 +18,7 @@ const actions: ActionTree = { "partyId": unavailablePickersPartyIds, "partyId_op": 'in' }, - "fieldList": ["firstName", "lastName", "partyId"], + "fieldList": ["firstName", "groupName", "lastName", "partyId"], "entityName": "PartyNameView", "viewSize": unavailablePickersPartyIds.length, "distinct": "Y", @@ -29,7 +29,7 @@ const actions: ActionTree = { 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; }, {});