We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b05dd9 commit 19bbec4Copy full SHA for 19bbec4
ui/src/views/compute/CreateKubernetesCluster.vue
@@ -421,7 +421,8 @@ export default {
421
var listNetworks = json.listnetworksresponse.network
422
if (this.arrayHasItems(listNetworks)) {
423
listNetworks = listNetworks.filter(n => n.type !== 'L2')
424
- this.networks = this.networks.concat(listNetworks)
+ var ids = new Set(this.networks.map(n => n.id))
425
+ this.networks = [...this.networks, ...listNetworks.filter(n => !ids.has(n.id))]
426
}
427
}).finally(() => {
428
this.networkLoading = false
0 commit comments