I have the new BB Posts working well for IDAA now. NOTE: I intentionally split the API calls that are triggered on layout and page loads.

This commit is contained in:
Scott Idem
2025-07-02 17:09:52 -04:00
parent 25de3407fd
commit 40061b92ca
11 changed files with 247 additions and 104 deletions

View File

@@ -34,14 +34,20 @@ export async function load({ params, parent }) { // route
console.log(`ae_journals journals [journal_entry_id] +page.ts: journal_entry_id = `, journal_entry_id);
}
// Load event journal entry object
let load_journal_obj = journals_func.load_ae_obj_id__journal_entry({
let load_journal_entry_obj = journals_func.load_ae_obj_id__journal_entry({
api_cfg: ae_acct.api,
journal_entry_id: journal_entry_id,
try_cache: true,
log_lvl: log_lvl
});
ae_acct.slct.journal_obj = load_journal_obj;
if (!load_journal_entry_obj) {
error(404, {
message: 'Journals - Journal Entry not found'
});
} else {
ae_acct.slct.journal_obj = load_journal_entry_obj;
}
}
// WARNING: Precaution against shared data between sites.