diff --git a/src/routes/events/[event_id]/+page.svelte b/src/routes/events/[event_id]/+page.svelte index babb451b..78f48170 100644 --- a/src/routes/events/[event_id]/+page.svelte +++ b/src/routes/events/[event_id]/+page.svelte @@ -148,7 +148,7 @@ function preventDefault(fn) { $effect(() => { if ($events_trigger == 'load__event_session_obj_li' && $events_slct.event_id) { console.log(`load__event_session_obj_li() $events_slct.event_id=${$events_slct.event_id}`); - + log_lvl = 1; $events_trigger = null; if ($events_loc.pres_mgmt.save_search_text) { @@ -173,16 +173,15 @@ $effect(() => { } // if ($events_sess.pres_mgmt.status_qry__search == 'done' && $events_slct?.event_session_obj_li) { + log_lvl = 1; if ($events_trigger == 'search_done') { $events_trigger = null; $events_sess.pres_mgmt.status_qry__search = null; if (log_lvl) { - console.log('TEST SEARCH - Search done. Pulling out the event_session_id_randoms...'); + console.log('TEST search done: Pulling out the event_session_id_randoms...'); } - - // We need to loop through the array of objects and get the event_session_id_random from each object a new list of event_session_id_randoms. Then we can use this list to get the full objects from the database. let tmp_li = []; // This is to prevent the array from constantly updating and triggering the liveQuery. if ($events_slct.event_session_obj_li && $events_slct.event_session_obj_li.length) { @@ -193,7 +192,7 @@ $effect(() => { } } event_session_id_random_li = tmp_li; - // console.log(`TEST search: event_session_id_random_li`, $state.snapshot(event_session_id_random_li)); + console.log(`TEST search results: event_session_id_random_li`, $state.snapshot(event_session_id_random_li)); } }); @@ -591,22 +590,8 @@ max-w-max --> - - -{#if event_session_id_random_li} - - - - - + +{#if event_session_id_random_li.length} ; // export let display_mode: string = 'default'; // 'default', 'compact', 'minimal', 'launcher' event_session_id_random_li?: Array; - link_to_type: string; - link_to_id: string; + link_to_type?: string; + link_to_id?: string; log_lvl?: number; } @@ -58,10 +58,11 @@ let lq__event_session_obj_li = $derived(liveQuery(async () => { })); - + + \ No newline at end of file