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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user