File tree Expand file tree Collapse file tree
testgen/ui/components/frontend/js/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,33 +146,36 @@ const TableGroupWizard = (props) => {
146146 return '' ;
147147 }
148148
149- return WizardProgressIndicator (
150- [
149+ const allIndicators = [
151150 {
152- index : 1 ,
153151 title : 'Table Group' ,
154152 skipped : false ,
155153 includedSteps : [ 'tableGroup' , 'testTableGroup' ] ,
156154 } ,
157155 {
158- index : 2 ,
159156 title : 'Profiling' ,
160157 skipped : ! stepsState . runProfiling . rawVal ,
161158 includedSteps : [ 'runProfiling' ] ,
162159 } ,
163160 {
164- index : 3 ,
165161 title : 'Testing' ,
166162 skipped : ! stepsState . testSuite . rawVal . generate ,
167163 includedSteps : [ 'testSuite' ] ,
168164 } ,
169165 {
170- index : 4 ,
171166 title : 'Monitors' ,
172167 skipped : ! stepsState . monitorSuite . rawVal . generate ,
173168 includedSteps : [ 'monitorSuite' ] ,
174169 } ,
175- ] ,
170+ ] . filter ( indicator => indicator . includedSteps . some ( s => steps . includes ( s ) ) )
171+ . map ( ( indicator , i ) => ( { ...indicator , index : i + 1 } ) ) ;
172+
173+ if ( allIndicators . length <= 1 ) {
174+ return '' ;
175+ }
176+
177+ return WizardProgressIndicator (
178+ allIndicators ,
176179 {
177180 index : stepIndex ,
178181 name : steps [ stepIndex ] ,
You can’t perform that action at this time.
0 commit comments