This commit is contained in:
Kulbhushan Kaushik 2022-10-10 10:46:03 -04:00
parent 5ca6887464
commit db7648bac6

View file

@ -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) {