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.
This commit is contained in:
Scott Idem
2025-11-13 20:38:21 -05:00
parent e19b448238
commit 7ded0fd9a6

View File

@@ -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;
}));