We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7042cfb commit c36d973Copy full SHA for c36d973
ui/src/views/network/VpcTab.vue
@@ -795,12 +795,12 @@ export default {
795
796
this.formRef.value.validate().then(() => {
797
const values = toRaw(this.form)
798
-
799
- api('createVpnConnection', {
800
- s2svpngatewayid: this.vpnGateways[0].id,
+ const params = {
+ s2svpngatewayid: this.vpnGateways[0] ? this.vpnGateways[0].id : null,
801
s2scustomergatewayid: values.vpncustomergateway,
802
passive: values.passive ? values.passive : false
803
- }).then(response => {
+ }
+ api('createVpnConnection', params).then(response => {
804
this.$pollJob({
805
jobId: response.createvpnconnectionresponse.jobid,
806
title: this.$t('label.vpn.connection'),
0 commit comments