This commit is contained in:
Jeremy Zimmerman 2022-12-12 15:55:39 -05:00
parent d437196d11
commit 77feda4899

View file

@ -3,7 +3,7 @@ import { useMainStore } from '@/store';
export function fetchCmsContentForPage(issPage) {
const store = useMainStore()
const clientName = "ClientOverrideTest";//store.issConfig.clientName;
const clientName = store.issConfig.clientName;
const clientOverride = (clientName.length > 0);
return store.getPageData(issPage)
@ -18,7 +18,7 @@ export function fetchCmsContentForPage(issPage) {
else {
// Else get the client override page.
const pageName = issPage + "_" + clientName.toLowerCase().replace(/ /g, "");
return store.getPageData(pageName)
.then(
(clientResponse) => {
@ -40,7 +40,7 @@ export function fetchCmsContentForPage(issPage) {
// clientResponse = contains the widgets from the client override page. (null if none)
function processPageData(baseResponse, clientResponse) {
const pageDataFromCms = {};
const widgets = [];
let widgets = [];
if ( clientResponse === null )
{