All of the changes from today (Wednesday February 25, 2026) need to be reviewed. We spent over 6 hours trying to fix the page loading when viewing a fresh Session ID and Presentation ID. OpenAI and Gemini failed hard!!! I am at a lost and frustrated. I will probably need to deal with this myself. :-/
This commit is contained in:
36
src/routes/events/[event_id]/(pres_mgmt)/+layout.ts
Normal file
36
src/routes/events/[event_id]/(pres_mgmt)/+layout.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/** @type {import('./$types').LayoutLoad} */
|
||||
|
||||
import { browser } from '$app/environment';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
|
||||
export async function load({ parent }) {
|
||||
const log_lvl: number = 0;
|
||||
|
||||
const parent_data = await parent();
|
||||
|
||||
const account_id = parent_data.account_id;
|
||||
|
||||
const ae_acct = parent_data[account_id];
|
||||
|
||||
const event_id = ae_acct.slct.event_id; // From root +layout.ts
|
||||
|
||||
if (browser) {
|
||||
if (log_lvl) console.log(`ae_events (pres_mgmt) +layout.ts (Non-Blocking Refresh)`);
|
||||
|
||||
if (event_id) {
|
||||
// Refresh the specific selected event
|
||||
events_func.load_ae_obj_id__event({
|
||||
api_cfg: ae_acct.api,
|
||||
event_id: event_id,
|
||||
// inc_file_li: false, // Changing from true 2026-02-04
|
||||
// inc_location_li: false, // Changing from true 2026-02-04
|
||||
inc_session_li: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
parent_data[account_id] = ae_acct;
|
||||
|
||||
return parent_data;
|
||||
}
|
||||
Reference in New Issue
Block a user