Skip to content

Commit

Permalink
Merge pull request #923 from Onlineberatung/OB-FixStatistics
Browse files Browse the repository at this point in the history
fix: statistics in profile without tenant
  • Loading branch information
web-mi authored May 12, 2023
2 parents 9df5a3b + 1eb5f72 commit 0da9f16
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/profile/profile.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ const profileRoutes = (
{
component: ConsultantStatistics,
condition: () =>
tenant === null ||
!!tenant?.settings?.featureStatisticsEnabled,
column: COLUMN_LEFT
}
Expand Down Expand Up @@ -204,9 +205,11 @@ const profileRoutes = (
elements: [
{
component: AbsenceFormular,
column: tenant?.settings?.featureStatisticsEnabled
? COLUMN_RIGHT
: COLUMN_LEFT
column:
tenant === null ||
tenant?.settings?.featureStatisticsEnabled
? COLUMN_RIGHT
: COLUMN_LEFT
}
]
}
Expand Down

0 comments on commit 0da9f16

Please sign in to comment.