Skip to content

Build your personal knowledge base with Trilium Notes

Make note wrapper widget aware of note context on mobile

Papierkorb2292c99ef4a549f3
diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.ts
index 2e59cfbab6..13c01418a9 100644
--- a/apps/client/src/widgets/note_wrapper.ts
+++ b/apps/client/src/widgets/note_wrapper.ts
@@ -23,7 +23,9 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
this.refresh();
}
- noteSwitchedAndActivatedEvent() {
+ noteSwitchedAndActivatedEvent({ noteContext }: EventData<"setNoteContext">) {
+ this.noteContext = noteContext;
+
this.refresh();
}