summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js
diff options
context:
space:
mode:
authorAvi Gaffa <avi.gaffa@amdocs.com>2017-10-22 14:12:49 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-22 14:12:49 +0000
commite13ec4b4c2feaffb81d8cbcab435617a99d9739e (patch)
tree98b2d2d1f93cffc34a35e04ec69dbeb2b9406f11 /openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js
parent1e51062f26bd208691721dd9fbbb408afa59cfde (diff)
parentf739ddb541ed36e9e64fe08213d790121ea89a00 (diff)
Merge "fix error when moving to previous version"
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js
index 6426847cfc..ae3d3932ed 100644
--- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js
+++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProduct.js
@@ -274,8 +274,9 @@ const mapActionsToProps = (dispatch, {currentScreen: {screen, props: {softwarePr
const props = {
onVersionSwitching: (version, meta) => {
+ const screenToLoad = !currentComponentId ? screen : enums.SCREEN.SOFTWARE_PRODUCT_COMPONENTS;
SoftwareProductActionHelper.fetchSoftwareProduct(dispatch, {softwareProductId, version});
- props.onNavigate({id: getActiveNavigationId(screen, currentComponentId), meta, version});
+ props.onNavigate({id: getActiveNavigationId(screenToLoad), meta, version});
},
onToggle: (groups, itemIdToExpand) => groups.map(({items}) => SoftwareProductActionHelper.toggleNavigationItems(dispatch, {items, itemIdToExpand})),
onNavigate: ({id, meta, version}) => {