This commit is contained in:
FrankRua 2022-01-14 16:40:08 -05:00
parent 3df24f131c
commit 7abbf7c3cb

View file

@ -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: "/",