mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(view/calendar): guard condition breaking recursion
This commit is contained in:
parent
2578d480a8
commit
249c42e781
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user