Bugfix/fix world map chart component (#1871)
* Clone countries before manipulation * Update changelog
This commit is contained in:
@@ -30,6 +30,9 @@ export class WorldMapChartComponent implements OnChanges, OnDestroy, OnInit {
|
||||
public ngOnInit() {}
|
||||
|
||||
public ngOnChanges() {
|
||||
// Create a copy before manipulating countries object
|
||||
this.countries = structuredClone(this.countries);
|
||||
|
||||
if (this.countries) {
|
||||
this.isLoading = true;
|
||||
|
||||
|
Reference in New Issue
Block a user