Pārlūkot izejas kodu

✨ display graph right from the beginning

jmacura 3 gadi atpakaļ
vecāks
revīzija
7a50a5cd41
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/app/graphs/year-graph/year-graph.component.ts

+ 2 - 0
src/app/graphs/year-graph/year-graph.component.ts

@@ -30,6 +30,8 @@ export class YearGraphComponent {
         ),
       ];
       console.log(this.regions);
+      this.selectedYear = this.firstYear;
+      this.redrawGraphs();
     });
   }