mirror of
https://github.com/zadam/trilium.git
synced 2025-09-13 10:05:16 +08:00
fix(views/calendar): not refreshing on note title change
This commit is contained in:
parent
2c730d1f0b
commit
3debf3ce1c
1 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue