|
|
@@ -16,10 +16,9 @@ export class DiscLegendComponent implements OnInit, AfterViewInit {
|
|
|
constructor(public sdmDihService: SdmDihService) {}
|
|
|
|
|
|
ngOnInit(): void {
|
|
|
- this.divId = `graph-legend-place-${this.region.replace(
|
|
|
- ' ',
|
|
|
- '_'
|
|
|
- )}-${this.scenario.replace(' ', '_')}`;
|
|
|
+ const regionSafeName = this.region.replaceAll(' ', '_');
|
|
|
+ const scenarioSafeName = this.scenario.replaceAll(' ', '_');
|
|
|
+ this.divId = `graph-place-${regionSafeName}-${scenarioSafeName}`;
|
|
|
}
|
|
|
|
|
|
ngAfterViewInit(): void {
|