File tree 1 file changed +12
-5
lines changed
frontend/client/views/pipeline
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,11 @@ export default {
233
233
jobs = pipeline .jobs
234
234
}
235
235
236
+ // check if this pipeline has jobs
237
+ if (! jobs) {
238
+ return
239
+ }
240
+
236
241
// Check if something has changed
237
242
if (this .nodes ) {
238
243
var redraw = false
@@ -360,11 +365,13 @@ export default {
360
365
361
366
checkPipelineArgs () {
362
367
// check if this pipeline has args
363
- for (let x = 0 , y = this .pipeline .jobs .length ; x < y; x++ ) {
364
- if (this .pipeline .jobs [x].args && this .pipeline .jobs [x].args .type !== ' vault' ) {
365
- // we found args. Redirect user to params view.
366
- this .$router .push ({path: ' /pipeline/params' , query: { pipelineid: this .pipeline .id }})
367
- return
368
+ if (this .pipeline .jobs ) {
369
+ for (let x = 0 , y = this .pipeline .jobs .length ; x < y; x++ ) {
370
+ if (this .pipeline .jobs [x].args && this .pipeline .jobs [x].args .type !== ' vault' ) {
371
+ // we found args. Redirect user to params view.
372
+ this .$router .push ({path: ' /pipeline/params' , query: { pipelineid: this .pipeline .id }})
373
+ return
374
+ }
368
375
}
369
376
}
370
377
You can’t perform that action at this time.
0 commit comments