Portal: fix schedule type toggle, daily rendering, overnight spill, and mobile grid
This commit is contained in:
@@ -69,11 +69,15 @@ function normaliseDay(type: ScheduleType | null, day: string | null | undefined)
|
||||
return day ?? null;
|
||||
}
|
||||
|
||||
// Schedules only need a Proclamation's identity and the labels the portal
|
||||
// shows. Selecting explicitly (rather than `include`) avoids pulling every
|
||||
// Proclamation column — notably the potentially large `content` — on each load.
|
||||
const blockInclude = {
|
||||
proclamations: {
|
||||
orderBy: { sortOrder: 'asc' as const },
|
||||
include: {
|
||||
proclamation: { include: { solfeggioFrequency: true } }
|
||||
select: {
|
||||
sortOrder: true,
|
||||
proclamation: { select: { id: true, name: true, categoryId: true, groupId: true } }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user