Various bug fixes for CHOW
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user