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) => { (baseResponse) => {
return store.getPageData(pageName) return store.getPageData(pageName)
.then( .then(
// Get the client overridge if it exists. // Get the client override if it exists.
(clientResponse) => { (clientResponse) => {
return processPageData(baseResponse, 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) // clientResponse = contains the widgets from the client override page. (null if none)
function processPageData(baseResponse, clientResponse) { function processPageData(baseResponse, clientResponse) {
const pageDataFromCms = {}; const pageDataFromCms = {};
let widgets = []; const widgets = [];
if ( clientResponse === null ) if ( clientResponse === null )
{ {
@ -45,8 +45,8 @@ function processPageData(baseResponse, clientResponse) {
if ( clientWidget.Name == baseWidget.Name ) if ( clientWidget.Name == baseWidget.Name )
{ {
widgets.push(clientWidget); widgets.push(clientWidget);
found = true; found = true;
} }
}); });
if ( !found ) if ( !found )
@ -54,8 +54,6 @@ function processPageData(baseResponse, clientResponse) {
}); });
} }
console.log(widgets);
widgets.forEach((widget) => { widgets.forEach((widget) => {
// Global state value replacement. // Global state value replacement.