Skip to content

Commit 14ca375

Browse files
committed
Do not try to add job parameter for unfilled optional parameter
1 parent 045bd95 commit 14ca375

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/job/AddJobModal.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ export default {
131131
return this.params.filter(param => param.required && param.defaultParamValue === null);
132132
},
133133
jobParameters() {
134-
return this.params.map(param => {
134+
return this.params.filter(param => {
135+
return param.value !== null;
136+
}).map(param => {
135137
let value = param.value;
136138
if(value.id) {
137139
value = value.id;

0 commit comments

Comments
 (0)