fix(views/calendar): duplicate entries in calendar view

This commit is contained in:
Elian Doran 2025-07-14 23:07:26 +03:00
parent b1f0c64ef2
commit 4321c161ac
No known key found for this signature in database

View File

@ -458,13 +458,6 @@ export default class CalendarView extends ViewMode<{}> {
for (const note of notes) {
const startDate = CalendarView.#getCustomisableLabel(note, "startDate", "calendar:startDate");
if (note.hasChildren()) {
const childrenEventData = await this.buildEvents(note.getChildNoteIds());
if (childrenEventData.length > 0) {
events.push(childrenEventData);
}
}
if (!startDate) {
continue;
}