From db7648bac6480d1fa3d8578cef39a631c82bd320 Mon Sep 17 00:00:00 2001 From: Kulbhushan Kaushik Date: Mon, 10 Oct 2022 10:46:03 -0400 Subject: [PATCH] commit --- src/helpers/cms-content-helper.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {