Creating version to of the data store element. Hopefully better now.
This commit is contained in:
@@ -161,7 +161,6 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
ae_loc_init['site_style_href'] = site_domain_results.style_href;
|
||||
ae_loc_init['site_google_tracking_id'] = site_domain_results.google_tracking_id;
|
||||
ae_loc_init['site_access_code_kv'] = site_domain_results.access_code_kv_json;
|
||||
ae_loc_init['page_access_code_li'] = site_domain_results.access_code_kv_json; // Old style. This is only temporary. Start using site_*_kv version.
|
||||
ae_loc_init['site_cfg_json'] = site_domain_results.cfg_json;
|
||||
|
||||
console.log(`root layout.ts: Returning account_id = `, site_domain_results.account_id_random);
|
||||
@@ -183,28 +182,6 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
}
|
||||
// console.log(ae_loc_init);
|
||||
|
||||
// NOTE: We need to wait for the account_id to be returned before we can continue. It is required for the api_cfg.
|
||||
// let ds_type: null|string = 'json';
|
||||
// ds_code = 'hub__page__access_code_li_json';
|
||||
// // console.log(`INFO: ae_ account_id = `, account_id);
|
||||
// // ae_acct['ds'][ds_code]
|
||||
// ds_code_li[ds_code] = await core_func.handle_load_ae_obj_code__data_store({
|
||||
// api_cfg: ae_api_init,
|
||||
// code: ds_code,
|
||||
// data_type: ds_type,
|
||||
// save_idb: false
|
||||
// })
|
||||
// .then(function (ds_results) {
|
||||
// if (ds_results) {
|
||||
// console.log(`ae_ ds_results = `, ds_results);
|
||||
// return ds_results;
|
||||
// }
|
||||
|
||||
// }
|
||||
// );
|
||||
|
||||
// ae_loc_init['page_access_code_li'] = ds_code_li['hub__page__access_code_li_json'];
|
||||
|
||||
ae_acct['api'] = ae_api_init;
|
||||
ae_acct['loc'] = ae_loc_init;
|
||||
ae_acct['ds'] = ds_code_li;
|
||||
@@ -214,11 +191,11 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
'site_id': ae_loc_init.site_id,
|
||||
|
||||
// For events_leads, events_badges, events_speakers
|
||||
'event_id': ae_loc_init.site_cfg_json.slct__event_id,
|
||||
'event_badge_template': ae_loc_init.site_cfg_json.slct__event_badge_template,
|
||||
'event_id': ae_loc_init.site_cfg_json?.slct__event_id,
|
||||
'event_badge_template': ae_loc_init.site_cfg_json?.slct__event_badge_template,
|
||||
|
||||
// For sponsorships
|
||||
'sponsorship_cfg_id': ae_loc_init.site_cfg_json.slct__sponsorship_cfg_id,
|
||||
'sponsorship_cfg_id': ae_loc_init.site_cfg_json?.slct__sponsorship_cfg_id,
|
||||
}
|
||||
// console.log(`ae_acct = `, ae_acct);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user