Browse Source

fixed blank index page when self-hosting or developing

- countriesOfSubscribers is undefined when the "ENABLE_FEATURE_SUBSCRIPTION" feature is not enabled in
  the info service
pull/1682/head
Johannes Herforth 3 years ago
parent
commit
87fd48bf1d
  1. 4
      CHANGELOG.md
  2. 2
      apps/client/src/app/pages/landing/landing-page.component.ts

4
CHANGELOG.md

@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `chart.js` from version `4.0.1` to `4.2.0`
- Upgraded `prettier` from version `2.8.1` to `2.8.4`
### Fixed
- Fixed the Index page when self-hosting or developing for Ghostfolio
## 1.233.0 - 2023-02-09
### Added

2
apps/client/src/app/pages/landing/landing-page.component.ts

@ -55,11 +55,13 @@ export class LandingPageComponent implements OnDestroy, OnInit {
const { countriesOfSubscribers, globalPermissions, statistics } =
this.dataService.fetchInfo();
if (countriesOfSubscribers) {
for (const country of countriesOfSubscribers) {
this.countriesOfSubscribersMap[country] = {
value: 1
};
}
}
this.hasPermissionForStatistics = hasPermission(
globalPermissions,

Loading…
Cancel
Save