Saving work after rounds of updates to the event object type functions.

This commit is contained in:
Scott Idem
2025-05-23 16:17:42 -04:00
parent 589320a850
commit 7c70d93a68
6 changed files with 918 additions and 92 deletions

View File

@@ -3,6 +3,7 @@ import { api } from '$lib/api';
import { db_save_ae_obj_li__ae_obj } from "$lib/ae_core/core__idb_dexie";
import { db_events } from "$lib/ae_events/db_events";
import { load_ae_obj_li__event_file } from "$lib/ae_events/ae_events__event_file";
import { load_ae_obj_li__event_presenter } from "$lib/ae_events/ae_events__event_presenter";
@@ -85,6 +86,15 @@ export async function load_ae_obj_id__event_presentation(
console.log('No results returned or failed.', error);
});
if (log_lvl) {
console.log('ae_promises.load__event_presentation_obj:', ae_promises.load__event_presentation_obj);
}
if (ae_promises?.load__event_presentation_obj === null) {
console.log('No results returned.');
return null;
}
if (inc_file_li) {
// Load the files for the presentation
if (log_lvl) {
@@ -666,12 +676,12 @@ export const properties_to_save = [
// Updated 2025-05-22
export async function process_ae_obj__event_presentation_props({
obj_li,
log_lvl = 0,
}: {
obj_li: any[];
log_lvl?: number;
}) {
obj_li,
log_lvl = 0,
}: {
obj_li: any[];
log_lvl?: number;
}) {
if (log_lvl) {
console.log(`*** process_ae_obj__event_presentation_props() ***`, obj_li);
}