Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

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

Maurice5eb00d587816
diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx
index 8d9a22e98..49a8f2629 100644
--- a/client/src/components/Planner/DayPlanSidebar.tsx
+++ b/client/src/components/Planner/DayPlanSidebar.tsx
@@ -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 })