From 1a03c0ca9f7fd0742f2d90e9c1bda618ff5f6eef Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 2 Dec 2025 10:56:58 +0200 Subject: [PATCH] fix(collections/calendar): events not updating sometimes --- apps/client/src/widgets/collections/calendar/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsx index f7e61a541..39b9ad6bb 100644 --- a/apps/client/src/widgets/collections/calendar/index.tsx +++ b/apps/client/src/widgets/collections/calendar/index.tsx @@ -117,7 +117,10 @@ export default function CalendarView({ note, noteIds }: ViewModeProps noteIds.includes(noteId)) // note title change. || loadResults.getAttributeRows().some((a) => noteIds.includes(a.noteId ?? ""))) // subnote change. { - calendarRef.current?.refetchEvents(); + // Defer execution after the load results are processed so that the event builder has the updated data to work with. + setTimeout(() => { + calendarRef.current?.refetchEvents(); + }, 0); } });