Various bug fixes for CHOW

This commit is contained in:
Scott Idem
2024-04-01 20:48:16 -04:00
parent 78b5fc1068
commit 3abe92a2dc
11 changed files with 77 additions and 45 deletions

View File

@@ -30,10 +30,16 @@ export async function load({ parent }) {
return false;
}
let load_sponsorship_cfg_obj = spons_func.handle_load_ae_obj_id__sponsorship_cfg({api_cfg: ae_acct.api, sponsorship_cfg_id: sponsorship_cfg_id, try_cache: false});
// The await at this point seems to be important. If it is in the sponsor function then the data is not available to the layout. - 2024-04-01
let load_sponsorship_cfg_obj = await spons_func.handle_load_ae_obj_id__sponsorship_cfg({
api_cfg: ae_acct.api,
sponsorship_cfg_id: sponsorship_cfg_id,
try_cache: false,
log_lvl: 0
});
ae_acct.slct.sponsorship_cfg_id = sponsorship_cfg_id;
ae_acct.slct.sponsorship_cfg_obj = await load_sponsorship_cfg_obj;
ae_acct.slct.sponsorship_cfg_obj = load_sponsorship_cfg_obj;
data.ae_sponsorships_layout_ts = true;