diff --git a/src/router/index.js b/src/router/index.js index ce7b76bcd..6b4e703fc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -113,11 +113,10 @@ function navigateToUrl(url) { // This will reach out to the Cms and there is a 1:1 relationship between page names and route names. async function GetRouteInfoFromPageName(pageName) { const response = await store.dispatch(storeActions.GET_ROUTE_INFO_ACTION, { pageName: pageName }); - - // Add our route data and return our array. const jsonFromResponse = JSON.parse(response.data.Result); let routeData = []; + // Add our route data and return our array. Object.keys(jsonFromResponse).forEach((key) => { routeData.push({ path: "/",