diff --git a/ui/src/views/compute/InstanceTab.vue b/ui/src/views/compute/InstanceTab.vue index e9e599a2737..c44b3f958df 100644 --- a/ui/src/views/compute/InstanceTab.vue +++ b/ui/src/views/compute/InstanceTab.vue @@ -586,10 +586,13 @@ export default { if (this.loadingNic) return this.loadingNic = true this.showUpdateIpModal = false - api('updateVmNicIp', { - nicId: this.editIpAddressNic, - ipaddress: this.editIpAddressValue - }).then(response => { + const params = { + nicId: this.editIpAddressNic + } + if (this.editIpAddressValue) { + params.ipaddress = this.editIpAddressValue + } + api('updateVmNicIp', params).then(response => { this.$pollJob({ jobId: response.updatevmnicipresponse.jobid, successMessage: this.$t('message.success.update.ipaddress'),