From: Laurence Maultsby Date: Fri, 13 Oct 2017 14:07:45 +0000 (-0400) Subject: Datacenter display fix on instnatiate X-Git-Tag: v3.0.0rc14~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F76%2F5576%2F1;p=osm%2FUI.git Datacenter display fix on instnatiate Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js index fecdff9bd..101c08ec0 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js @@ -188,11 +188,12 @@ class LaunchNetworkServiceStore { let self = this; Alt.actions.global.hideScreenLoader.defer(); let ROAccounts = []; + ROAccounts = ROAccounts.concat(data).filter(function(r){ return r.name != "rift" }); this.setState({ - resourceOrchestrators: ROAccounts.concat(data).filter(function(r){ return r.name != "rift" }), - selectedResourceOrchestrator: data[0], - dataCenterID: data && data[0] && data[0].datacenters && data[0].datacenters.datacenters && data[0].datacenters.datacenters[0] && data[0].datacenters.datacenters[0].name, - dataCenterType: data && data[0] && data[0].datacenters && data[0].datacenters.datacenters && data[0].datacenters.datacenters[0] && data[0].datacenters.datacenters[0]['datacenter-type'], + resourceOrchestrators: ROAccounts, + selectedResourceOrchestrator: ROAccounts[0], + dataCenterID: ROAccounts[0] && ROAccounts[0].datacenters && ROAccounts[0].datacenters.datacenters && ROAccounts[0].datacenters.datacenters[0] && ROAccounts[0].datacenters.datacenters[0].name, + dataCenterType: ROAccounts[0] && ROAccounts[0].datacenters && ROAccounts[0].datacenters.datacenters && ROAccounts[0].datacenters.datacenters[0] && ROAccounts[0].datacenters.datacenters[0]['datacenter-type'], displayVIMAccounts: false }) }