diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.ts index 13c01418a..619f8cda4 100644 --- a/apps/client/src/widgets/note_wrapper.ts +++ b/apps/client/src/widgets/note_wrapper.ts @@ -29,11 +29,15 @@ export default class NoteWrapperWidget extends FlexContainer { this.refresh(); } - noteSwitchedEvent() { + noteSwitchedEvent({ noteContext }: EventData<"setNoteContext">) { + this.noteContext = noteContext; + this.refresh(); } - activeContextChangedEvent() { + activeContextChangedEvent({ noteContext }: EventData<"setNoteContext">) { + this.noteContext = noteContext; + this.refresh(); }