commit
This commit is contained in:
parent
5ca6887464
commit
db7648bac6
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue