Updates.
This commit is contained in:
parent
dd4f686cad
commit
1acc33044f
1 changed files with 4 additions and 6 deletions
|
|
@ -12,7 +12,7 @@ export function fetchCmsContentForPage(issPage) {
|
|||
(baseResponse) => {
|
||||
return store.getPageData(pageName)
|
||||
.then(
|
||||
// Get the client overridge if it exists.
|
||||
// Get the client override if it exists.
|
||||
(clientResponse) => {
|
||||
return processPageData(baseResponse, clientResponse);
|
||||
},
|
||||
|
|
@ -29,7 +29,7 @@ export function fetchCmsContentForPage(issPage) {
|
|||
// clientResponse = contains the widgets from the client override page. (null if none)
|
||||
function processPageData(baseResponse, clientResponse) {
|
||||
const pageDataFromCms = {};
|
||||
let widgets = [];
|
||||
const widgets = [];
|
||||
|
||||
if ( clientResponse === null )
|
||||
{
|
||||
|
|
@ -45,8 +45,8 @@ function processPageData(baseResponse, clientResponse) {
|
|||
if ( clientWidget.Name == baseWidget.Name )
|
||||
{
|
||||
widgets.push(clientWidget);
|
||||
found = true;
|
||||
}
|
||||
found = true;
|
||||
}
|
||||
});
|
||||
|
||||
if ( !found )
|
||||
|
|
@ -54,8 +54,6 @@ function processPageData(baseResponse, clientResponse) {
|
|||
|
||||
});
|
||||
}
|
||||
|
||||
console.log(widgets);
|
||||
|
||||
widgets.forEach((widget) => {
|
||||
// Global state value replacement.
|
||||
|
|
|
|||
Loading…
Reference in a new issue