diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js index 9a7c0925..cc9769eb 100644 --- a/src/helpers/cms-content-helper.js +++ b/src/helpers/cms-content-helper.js @@ -1,5 +1,7 @@ +import { dynamicStrings } from "../constants/dynamic-strings"; + export function fetchCmsContentForPage(issPage) { - return this.mainStore.getRouteInfo(issPage) + return this.mainStore.getPageData(issPage) .then((response) => { const pageDataFromCms = {}; @@ -93,7 +95,7 @@ function mapStringToState(str) { for (const match of globalStateMatches) { // Reset store state for each match. - let storeState = store.state; + let storeState = this.mainStore.state; for (const s of match[2].split(".")) { if (storeState[s] != undefined) {