aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding
diff options
context:
space:
mode:
authormiriame <miriam.eini@amdocs.com>2017-10-22 16:30:35 +0300
committermiriame <miriam.eini@amdocs.com>2017-10-22 16:30:35 +0300
commitf739ddb541ed36e9e64fe08213d790121ea89a00 (patch)
tree68addc600ecc2425bf573d1d5e1b151d4e8adc6e /openecomp-ui/src/sdc-app/onboarding
parenta287b5148248fb02dd72c816b3a7fea73a4ce918 (diff)
fix error when moving to previous version
Change-Id: I1ab9ccd59370836a47769aa57e79186cbe001566 Issue-ID: SDC-489 Signed-off-by: miriame <miriam.eini@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding')
-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}) => {