Skip to content

Commit

Permalink
EPMRPP-96296 || prop.meta => prop_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-hambardzumian committed Oct 15, 2024
1 parent 64faa64 commit 9e51d49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.users.meta.count;
const usersCount = organization.stats.user_stats.count;
const projectsCount = organization.stats.projects.meta.count;
const lastLaunch = organization.stats.launches.meta.last_occurred_at;
const lastLaunch = organization.stats.launch_stats.last_occurred_at;
const { value: relativeTime, unit } = getRelativeUnits(new Date(lastLaunch));
const isOutdated = Date.now() - new Date(lastLaunch).getTime() > THREE_MONTHS;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const ProjectsListTable = ({
const data = useMemo(
() =>
projects.map((project) => {
const lastLaunch = project.stats?.launches.meta.last_occurred_at;
const lastLaunch = project.stats?.launch_stats.last_occurred_at;
return {
id: project.id,
name: {
Expand All @@ -80,8 +80,8 @@ export const ProjectsListTable = ({
</div>
),
},
usersCount: project.stats.users.meta.count,
launchesCount: project.stats.launches.meta.count,
usersCount: project.stats.user_stats.count,
launchesCount: project.stats.launch_stats.count,
lastLaunch: {
content: lastLaunch,
component: lastLaunch ? (
Expand Down

0 comments on commit 9e51d49

Please sign in to comment.