diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue index 1566806883d..39946eeabc8 100644 --- a/ui/src/views/compute/DeployVM.vue +++ b/ui/src/views/compute/DeployVM.vue @@ -2158,6 +2158,7 @@ export default { }, fetchTemplateNics (template) { var nics = [] + this.nicToNetworkSelection = [] if (template && template.deployasisdetails && Object.keys(template.deployasisdetails).length > 0) { var keys = Object.keys(template.deployasisdetails) keys = keys.filter(key => key.startsWith('network-')) @@ -2169,7 +2170,6 @@ export default { return a.InstanceID - b.InstanceID }) if (this.options.networks && this.options.networks.length > 0) { - this.nicToNetworkSelection = [] for (var i = 0; i < nics.length; ++i) { var nic = nics[i] nic.id = nic.InstanceID