fix(views/calendar): not refreshing on note title change

This commit is contained in:
Elian Doran 2025-07-19 14:53:27 +03:00
parent 2c730d1f0b
commit 3debf3ce1c
No known key found for this signature in database

View file

@ -401,9 +401,14 @@ export default class CalendarView extends ViewMode<{}> {
return true;
}
// Refresh on note title change.
if (loadResults.getNoteIds().some(noteId => this.noteIds.includes(noteId))) {
this.calendar?.refetchEvents();
}
// Refresh dataset on subnote change.
if (this.calendar && loadResults.getAttributeRows().some((a) => this.noteIds.includes(a.noteId ?? ""))) {
this.calendar.refetchEvents();
if (loadResults.getAttributeRows().some((a) => this.noteIds.includes(a.noteId ?? ""))) {
this.calendar?.refetchEvents();
}
}