From 623fcce3d10a7043d1dbc377663a2a53c97f9e95 Mon Sep 17 00:00:00 2001 From: Papierkorb2292 <104673791+Papierkorb2292@users.noreply.github.com> Date: Mon, 1 Sep 2025 11:33:15 +0200 Subject: [PATCH] Also update note context in other note context events in note wrapper so it works with tabs --- apps/client/src/widgets/note_wrapper.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); }