From 1acc33044f248952dd0bfa1f71447747c7da6ffe Mon Sep 17 00:00:00 2001 From: Jeremy Zimmerman Date: Thu, 8 Dec 2022 15:09:11 -0500 Subject: [PATCH] Updates. --- src/helpers/cms-content-helper.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js index 6deadf3e..d6c89b2e 100644 --- a/src/helpers/cms-content-helper.js +++ b/src/helpers/cms-content-helper.js @@ -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.