Skip to content

Commit 3efd690

Browse files
committed
improve stability
1 parent 918f5e8 commit 3efd690

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

client/src/components/apps/new.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ export default {
13311331
}
13321332
13331333
// Backward compatibility older v1.11.1
1334-
if (this.buildpack.run && this.buildpack.run.readOnlyAppStorage === undefined) {
1334+
if (this.buildpack && this.buildpack.run && this.buildpack.run.readOnlyAppStorage === undefined) {
13351335
this.buildpack.run.readOnlyAppStorage = true;
13361336
}
13371337
});
@@ -1374,7 +1374,7 @@ export default {
13741374
}
13751375
13761376
// Backward compatibility older v1.11.1
1377-
if (this.buildpack.run && this.buildpack.run.readOnlyAppStorage === undefined) {
1377+
if (this.buildpack && this.buildpack.run && this.buildpack.run.readOnlyAppStorage === undefined) {
13781378
this.buildpack.run.readOnlyAppStorage = true;
13791379
}
13801380
@@ -1508,7 +1508,7 @@ export default {
15081508
this.ingress = response.data.spec.ingress || {};
15091509
15101510
// Backward compatibility older v1.11.1
1511-
if (this.buildpack.run && this.buildpack.run.readOnlyAppStorage === undefined) {
1511+
if (this.buildpack && this.buildpack.run && this.buildpack.run.readOnlyAppStorage === undefined) {
15121512
this.buildpack.run.readOnlyAppStorage = true;
15131513
}
15141514
});

client/src/components/pipelines/new.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ export default {
506506
}
507507
}
508508
509+
// Bugfix: select a buildpack if none is selected, since it contains basic seciruty settings
510+
if (this.buildpack === undefined) {
511+
this.buildpack = this.buildpackList[0].value;
512+
}
513+
509514
axios.post(`/api/pipelines`, {
510515
pipelineName: this.pipelineName,
511516
domain: this.domain,

0 commit comments

Comments
 (0)