From 5eb00d587816d8d344599795f475f83de0e2f829 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 12 Oct 2026 19:57:48 +0000 Subject: [PATCH] refactor(planner): the day sidebar reads the stop days without a memo the compiler cannot keep --- client/src/components/Planner/DayPlanSidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })