Browse Source

Clone countries before manipulation

pull/1871/head
Thomas 2 years ago
parent
commit
4fef22a36d
  1. 3
      apps/client/src/app/components/world-map-chart/world-map-chart.component.ts

3
apps/client/src/app/components/world-map-chart/world-map-chart.component.ts

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

Loading…
Cancel
Save