Fixed navigation error, we needed to add the 'isSavingNavigation' parameter to the overrideNavigation call in vehicle-style

This commit is contained in:
Leah Schumann 2022-08-22 08:45:48 -04:00
parent 3175ba4251
commit c03c406eb2
2 changed files with 3 additions and 3 deletions

View file

@ -87,7 +87,7 @@ export default {
});
//emulate selecting the vehicle style
router.overrideNavigation(navigationScenarios.SELECTED_STYLE, to, next);
router.overrideNavigation(navigationScenarios.SELECTED_STYLE, to, next, true);
} else{
next( (vm) => {

View file

@ -160,8 +160,8 @@ router.navigateToExternalUrl = (url, optionalQuery = {}) => {
}
//Use this navigation when you need to call next() explicitly. beforeRouteEnter is a good example.
router.overrideNavigation = (scenario, currentRoute, next, optionalQuery = {}, optionalParams = {}, optionalPageData) => {
router.navigate(scenario, currentRoute, optionalQuery, optionalParams, optionalPageData);
router.overrideNavigation = (scenario, currentRoute, next, isSavingNavigation, optionalQuery = {}, optionalParams = {}, optionalPageData) => {
navigate(scenario, currentRoute, isSavingNavigation, optionalQuery, optionalParams, optionalPageData);
next();
}