Browse Source
Fix landing page by setting a default value for countriesOfSubscribers
* Set default value for countriesOfSubscribers
* Update changelog
pull/1676/head^2
Johannes Herforth
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
2 deletions
-
CHANGELOG.md
-
apps/client/src/app/pages/landing/landing-page.component.ts
|
|
@ -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 an issue on the landing page caused by the global heat map of subscribers |
|
|
|
|
|
|
|
## 1.233.0 - 2023-02-09 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -52,8 +52,11 @@ export class LandingPageComponent implements OnDestroy, OnInit { |
|
|
|
private dataService: DataService, |
|
|
|
private deviceService: DeviceDetectorService |
|
|
|
) { |
|
|
|
const { countriesOfSubscribers, globalPermissions, statistics } = |
|
|
|
this.dataService.fetchInfo(); |
|
|
|
const { |
|
|
|
countriesOfSubscribers = [], |
|
|
|
globalPermissions, |
|
|
|
statistics |
|
|
|
} = this.dataService.fetchInfo(); |
|
|
|
|
|
|
|
for (const country of countriesOfSubscribers) { |
|
|
|
this.countriesOfSubscribersMap[country] = { |
|
|
|