@@ -236,7 +236,7 @@ export class CircularHeatmapComponent implements OnInit {
236236 return new Promise < void > ( ( resolve , reject ) => {
237237 console . log ( ( performance . now ( ) / 1000 ) . toFixed ( 3 ) + 's: LoadTeamsFromMetaYaml Fetch' ) ;
238238 this . yaml . setURI ( './assets/YAML/meta.yaml' ) ;
239- this . yaml . getJson ( ) . subscribe ( data => { setTimeout ( ( data ) => {
239+ this . yaml . getJson ( ) . subscribe ( data => {
240240 console . log ( ( performance . now ( ) / 1000 ) . toFixed ( 3 ) + 's: LoadTeamsFromMetaYaml Downloaded' ) ;
241241 this . YamlObject = data ;
242242
@@ -245,7 +245,7 @@ export class CircularHeatmapComponent implements OnInit {
245245 this . teamVisible = [ ...this . teamList ] ;
246246 console . log ( ( performance . now ( ) / 1000 ) . toFixed ( 3 ) + 's: LoadTeamsFromMetaYaml End' ) ;
247247 resolve ( ) ; // Resolve the promise, and allow the next Load to run
248- } , 500 , data ) } ) ; // Delay Teams by half a second
248+ } ) ;
249249 } ) ;
250250 }
251251
@@ -254,7 +254,7 @@ export class CircularHeatmapComponent implements OnInit {
254254 console . log ( ( performance . now ( ) / 1000 ) . toFixed ( 3 ) + 's: LoadMaturityLevels Fetch' ) ;
255255 this . yaml . setURI ( './assets/YAML/meta.yaml' ) ;
256256 // Function sets column header
257- this . yaml . getJson ( ) . subscribe ( data => { setTimeout ( ( data ) => {
257+ this . yaml . getJson ( ) . subscribe ( data => {
258258 console . log ( ( performance . now ( ) / 1000 ) . toFixed ( 3 ) + 's: LoadMaturityLevels Downloaded' ) ;
259259 this . YamlObject = data ;
260260
@@ -266,7 +266,7 @@ export class CircularHeatmapComponent implements OnInit {
266266 }
267267 console . log ( ( performance . now ( ) / 1000 ) . toFixed ( 3 ) + 's: LoadMaturityLevels End' ) ;
268268 resolve ( ) ; // Resolve the promise, and allow the next Load to run
269- } , 700 , data ) } ) ; // Delay meta data even more than half a second. This order may happen on flaky network
269+ } ) ;
270270 } ) ;
271271 }
272272
0 commit comments