mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
fix(views/calendar): not refreshing on note title change
This commit is contained in:
@@ -401,9 +401,14 @@ export default class CalendarView extends ViewMode<{}> {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Refresh on note title change.
|
||||||
|
if (loadResults.getNoteIds().some(noteId => this.noteIds.includes(noteId))) {
|
||||||
|
this.calendar?.refetchEvents();
|
||||||
|
}
|
||||||
|
|
||||||
// Refresh dataset on subnote change.
|
// Refresh dataset on subnote change.
|
||||||
if (this.calendar && loadResults.getAttributeRows().some((a) => this.noteIds.includes(a.noteId ?? ""))) {
|
if (loadResults.getAttributeRows().some((a) => this.noteIds.includes(a.noteId ?? ""))) {
|
||||||
this.calendar.refetchEvents();
|
this.calendar?.refetchEvents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user