From 2e1f2520098ff20f16ee421a19b904b07efddc41 Mon Sep 17 00:00:00 2001 From: maria-hambardzumian Date: Tue, 15 Oct 2024 12:34:17 +0400 Subject: [PATCH] EPMRPP-96296 || Revert changes within organizations --- .../organizationCard/organizationCard.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/pages/instance/organizationsPage/organizationsPanelView/organizationCard/organizationCard.jsx b/app/src/pages/instance/organizationsPage/organizationsPanelView/organizationCard/organizationCard.jsx index 427d4ee3e9..0af3c72896 100644 --- a/app/src/pages/instance/organizationsPage/organizationsPanelView/organizationCard/organizationCard.jsx +++ b/app/src/pages/instance/organizationsPage/organizationsPanelView/organizationCard/organizationCard.jsx @@ -43,9 +43,9 @@ export const OrganizationCard = ({ organization }) => { const { formatMessage } = useIntl(); const { userRole, organizationRole } = useSelector(userRolesSelector); const hasPermission = userRole === ADMINISTRATOR || organizationRole === MANAGER; - const usersCount = organization.stats.user_stats.count; - const projectsCount = organization.stats.projects.meta.count; - const lastLaunch = organization.stats.launch_stats.last_occurred_at; + const usersCount = organization.relationships.users.meta.count; + const projectsCount = organization.relationships.projects.meta.count; + const lastLaunch = organization.relationships.launches.meta.last_occurred_at; const { value: relativeTime, unit } = getRelativeUnits(new Date(lastLaunch)); const isOutdated = Date.now() - new Date(lastLaunch).getTime() > THREE_MONTHS;