mirror of
https://github.com/zadam/trilium.git
synced 2026-02-23 23:00:53 +01:00
fix(view/calendar): guard condition breaking recursion
This commit is contained in:
@@ -280,9 +280,6 @@ export default class CalendarView extends ViewMode {
|
||||
|
||||
for (const note of notes) {
|
||||
const startDate = note.getLabelValue("startDate");
|
||||
if (!startDate) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (note.hasChildren()) {
|
||||
const childrenEventData = await this.#buildEvents(note.getChildNoteIds());
|
||||
@@ -291,6 +288,9 @@ export default class CalendarView extends ViewMode {
|
||||
}
|
||||
}
|
||||
|
||||
if (!startDate) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const endDate = note.getAttributeValue("label", "endDate");
|
||||
events.push(await CalendarView.#buildEvent(note, startDate, endDate));
|
||||
|
||||
Reference in New Issue
Block a user