Fix landing page by setting a default value for countriesOfSubscribers
* Set default value for countriesOfSubscribers * Update changelog
This commit is contained in:
committed by
GitHub
parent
eabd2f3934
commit
b09d3cea95
@ -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] = {
|
||||
|
Reference in New Issue
Block a user