From 283f402537d8511ed4babfbb9f859202f7e2d5aa Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Fri, 13 Oct 2017 10:07:45 -0400 Subject: [PATCH] Datacenter display fix on instnatiate Signed-off-by: Laurence Maultsby --- .../launchpad/src/instantiate/instantiateStore.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }) } -- 2.25.1