Updates.
This commit is contained in:
parent
d437196d11
commit
77feda4899
1 changed files with 3 additions and 3 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue