Skip to content

Commit 54853aa

Browse files
author
Hoang Nguyen
authored
UI: Fix upload SSL certificate failed in the project view (#4761)
1 parent 3a82392 commit 54853aa

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ui/src/views/AutogenView.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,9 @@ export default {
964964
}
965965
break
966966
}
967+
if (!input) {
968+
continue
969+
}
967970
if (action.mapping && key in action.mapping && action.mapping[key].options) {
968971
params[key] = action.mapping[key].options[input]
969972
} else if (param.type === 'list') {
@@ -987,12 +990,14 @@ export default {
987990
}
988991
}
989992
990-
if (action.mapping) {
991-
for (const key in action.mapping) {
992-
if (!action.mapping[key].value) {
993-
continue
993+
if (!this.projectView || !['uploadSslCert'].includes(action.api)) {
994+
if (action.mapping) {
995+
for (const key in action.mapping) {
996+
if (!action.mapping[key].value) {
997+
continue
998+
}
999+
params[key] = action.mapping[key].value(this.resource, params)
9941000
}
995-
params[key] = action.mapping[key].value(this.resource, params)
9961001
}
9971002
}
9981003

0 commit comments

Comments
 (0)