Trying to make things work better...
This commit is contained in:
@@ -14,14 +14,12 @@ export async function load({ parent }) {
|
||||
}
|
||||
|
||||
let event_id = null;
|
||||
if (data.url.searchParams.get('event_id')) {
|
||||
event_id = data.url.searchParams.get('event_id');
|
||||
} else if (data.ae_loc.site_cfg_json.slct__event_id) {
|
||||
if (data.ae_loc.site_cfg_json.slct__event_id) {
|
||||
event_id = data.ae_loc.site_cfg_json.slct__event_id;
|
||||
} else if (data.ae_loc.default__event_id) {
|
||||
event_id = data.ae_loc.default__event_id;
|
||||
} else {
|
||||
console.log(`The slct__event_id was not found in the data.ae_loc.site_cfg_json!!!`);
|
||||
console.log(`The event_id was not found in the data.ae_loc.site_cfg_json!!!`);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -36,4 +34,6 @@ export async function load({ parent }) {
|
||||
|
||||
return data;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export const prerender = true;
|
||||
Reference in New Issue
Block a user