This commit is contained in:
Jeremy Zimmerman 2022-12-08 15:09:11 -05:00
parent dd4f686cad
commit 1acc33044f

View file

@ -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.