mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-04 11:19:27 -05: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) {
|
for (const note of notes) {
|
||||||
const startDate = note.getLabelValue("startDate");
|
const startDate = note.getLabelValue("startDate");
|
||||||
if (!startDate) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (note.hasChildren()) {
|
if (note.hasChildren()) {
|
||||||
const childrenEventData = await this.#buildEvents(note.getChildNoteIds());
|
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");
|
const endDate = note.getAttributeValue("label", "endDate");
|
||||||
events.push(await CalendarView.#buildEvent(note, startDate, endDate));
|
events.push(await CalendarView.#buildEvent(note, startDate, endDate));
|
||||||
|
|||||||
Reference in New Issue
Block a user