mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-20 14:06:27 +00:00
refactor(planner): the day sidebar reads the stop days without a memo the compiler cannot keep
This commit is contained in:
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user