File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,7 @@ const getAndShowPhase = () => {
5959 const sub_phase_regex = / ^ [ \. \s 0 - 9 a - z A - Z _ \( \) - ] + $ / ; // Matches strings containing only letters and digits
6060 if ( phase_to_display [ 1 ] != null && sub_phase_regex . test ( phase_to_display [ 1 ] ) ) {
6161 try {
62- setTimeout ( function ( ) {
63- document . querySelector ( `a.runtime-step[data-tab="${ phase_to_display [ 1 ] } "` ) . dispatchEvent ( new Event ( 'click' ) ) ;
64- } , 1000 ) ; // hacky ... this needs better solution ... but unclear WHY it is not sync ...
62+ document . querySelector ( `a.runtime-step[data-tab="${ phase_to_display [ 1 ] } "` ) . dispatchEvent ( new Event ( 'click' ) ) ;
6563 } catch ( err ) {
6664 console . log ( 'Could not match phase to show' , err ) ;
6765 }
Original file line number Diff line number Diff line change @@ -330,13 +330,15 @@ const fetchAndFillPhaseStatsData = async (url_params) => {
330330
331331
332332 buildPhaseTabs ( phase_stats . data )
333- renderCompareChartsForPhase ( phase_stats . data , getAndShowPhase ( ) ) ;
334- displayTotalChart ( ...buildTotalChartData ( phase_stats . data ) ) ;
335333
336334 document . querySelectorAll ( '.ui.steps.phases .step, .runtime-step' ) . forEach ( node => node . addEventListener ( 'click' , el => {
337- const phase = el . currentTarget . getAttribute ( 'data-tab' ) ;
338- renderCompareChartsForPhase ( phase_stats . data , phase ) ;
339- } ) ) ;
335+ const phase = el . currentTarget . getAttribute ( 'data-tab' ) ;
336+ renderCompareChartsForPhase ( phase_stats . data , phase ) ;
337+ } )
338+ ) ;
339+
340+ renderCompareChartsForPhase ( phase_stats . data , getAndShowPhase ( ) ) ;
341+ displayTotalChart ( ...buildTotalChartData ( phase_stats . data ) ) ;
340342
341343}
342344
You can’t perform that action at this time.
0 commit comments