Comments
This commit is contained in:
parent
3df24f131c
commit
7abbf7c3cb
1 changed files with 1 additions and 2 deletions
|
|
@ -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.
|
// This will reach out to the Cms and there is a 1:1 relationship between page names and route names.
|
||||||
async function GetRouteInfoFromPageName(pageName) {
|
async function GetRouteInfoFromPageName(pageName) {
|
||||||
const response = await store.dispatch(storeActions.GET_ROUTE_INFO_ACTION, { pageName: 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);
|
const jsonFromResponse = JSON.parse(response.data.Result);
|
||||||
let routeData = [];
|
let routeData = [];
|
||||||
|
|
||||||
|
// Add our route data and return our array.
|
||||||
Object.keys(jsonFromResponse).forEach((key) => {
|
Object.keys(jsonFromResponse).forEach((key) => {
|
||||||
routeData.push({
|
routeData.push({
|
||||||
path: "/",
|
path: "/",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue