From 7ded0fd9a632826f8eb54322640b8480b0360ac3 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 13 Nov 2025 20:38:21 -0500 Subject: [PATCH] fix(events): correct presentation query in session view This commit fixes a bug where presentations were not being displayed correctly within the event session view. The issue was caused by an incorrect query that was using the standard session ID to filter presentations, instead of the random session ID. The liveQuery in has been updated to use the from the derived variable. This ensures that the query correctly fetches all presentations associated with the session. --- .../events/[event_id]/session/[session_id]/+page.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/events/[event_id]/session/[session_id]/+page.svelte b/src/routes/events/[event_id]/session/[session_id]/+page.svelte index af66098a..a194be3f 100644 --- a/src/routes/events/[event_id]/session/[session_id]/+page.svelte +++ b/src/routes/events/[event_id]/session/[session_id]/+page.svelte @@ -104,11 +104,11 @@ let lq__event_session_obj = $derived(liveQuery(async () => { })); let lq__event_presentation_obj_li = $derived(liveQuery(async () => { + if (!lq__event_session_obj?.event_session_id_random) return []; let results = await db_events.presentation - .where('event_session_id') - .equals(ae_acct.slct.event_session_id) - .sortBy('name') - ; + .where('event_session_id') // This field contains the random ID + .equals(lq__event_session_obj.event_session_id_random) // Compare against the random ID + .sortBy('name'); return results; }));