fix: 🐛 fix wrong triggerEvent usage

This commit is contained in:
Jin
2025-03-03 22:56:24 +01:00
parent 469c2c3ce9
commit a9d8d7d3c5
6 changed files with 12 additions and 13 deletions

View File

@@ -105,7 +105,7 @@ class NoteContextAwareWidget extends BasicWidget {
}
// when note is both switched and activated, this should not produce a double refresh
async noteSwitchedAndActivatedEvent({ noteContext, notePath }: EventData<"noteSwitchedAndActivatedEvent">) {
async noteSwitchedAndActivatedEvent({ noteContext, notePath }: EventData<"noteSwitchedAndActivated">) {
this.noteContext = noteContext;
// if notePath does not match, then the noteContext has been switched to another note in the meantime