Bugfix/fix world map chart component (#1871)

* Clone countries before manipulation

* Update changelog
This commit is contained in:
Thomas Kaul
2023-04-18 20:32:18 +02:00
committed by GitHub
parent 7378900050
commit 80a3668aa9
2 changed files with 4 additions and 0 deletions

View File

@@ -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;