summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/common/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/src/sdc-app/common/helpers')
-rw-r--r--openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js b/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js
index d8fa02664f..ecee47d8b0 100644
--- a/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js
+++ b/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js
@@ -277,13 +277,13 @@ const ScreensHelper = {
}
},
- loadLandingScreen(dispatch, {previousScreenName, props: {licenseModelId, softwareProductId, version}}) {
- const screenType = this.getScreenType(previousScreenName);
- let screen = screenType === screenTypes.SOFTWARE_PRODUCT ?
+ loadLandingScreen(dispatch, {previousScreenName, screenType, props: {licenseModelId, softwareProductId, version}}) {
+ let selectedScreenType = screenType ? screenType : this.getScreenType(previousScreenName);
+ let screen = selectedScreenType === screenTypes.SOFTWARE_PRODUCT ?
enums.SCREEN.SOFTWARE_PRODUCT_LANDING_PAGE :
enums.SCREEN.LICENSE_MODEL_OVERVIEW;
let props = {licenseModelId, softwareProductId, version};
- return this.loadScreen(dispatch, {screen, screenType, props});
+ return this.loadScreen(dispatch, {screen, screenType: selectedScreenType, props});
}
};