diff --git a/.circleci/config.yml b/.circleci/config.yml index 1297d2e4a..d6b3cb6b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -222,6 +222,7 @@ workflows: - LVT-256 - CORE-635 - feat/system-admin + - pm-1464 - deployQa: context: org-global diff --git a/src/apps/copilots/src/services/members.ts b/src/apps/copilots/src/services/members.ts index 6926bd805..85b05a16c 100644 --- a/src/apps/copilots/src/services/members.ts +++ b/src/apps/copilots/src/services/members.ts @@ -42,8 +42,8 @@ export const getMembersByUserIds = async ( const membersFactory = (members: Member[]): FormattedMembers[] => members.map(member => ({ ...member, - activeProjects: member.stats.find(item => item.COPILOT.activeProjects)?.COPILOT.activeProjects || 0, - copilotFulfillment: member.stats.find(item => item.COPILOT.fulfillment)?.COPILOT.fulfillment || 0, + activeProjects: member.stats?.find(item => item.COPILOT?.activeProjects)?.COPILOT?.activeProjects || 0, + copilotFulfillment: member.stats?.find(item => item.COPILOT?.fulfillment)?.COPILOT?.fulfillment || 0, })) /**