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