refactor(planner): the day sidebar reads the stop days without a memo the compiler cannot keep

This commit is contained in:
Maurice
2026-10-12 19:57:48 +00:00
parent 97833412dc
commit 5eb00d5878
@@ -435,7 +435,7 @@ function useDayPlanSidebar(props: DayPlanSidebarProps) {
}
// A booking pinned to a stop on another day shows at that stop only (#2604).
const stopDays = useMemo(() => stopDayIds(assignments), [assignments])
const stopDays = stopDayIds(assignments)
const getTransportForDay = (dayId: number) =>
_getTransportForDay({ reservations, dayId, dayAssignmentIds: (assignments[String(dayId)] || []).map(a => a.id), days, stopDays })