mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
fix note switching in current tab
This commit is contained in:
@@ -107,7 +107,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
|
||||
const notePath = await treeUtils.getNotePath(data.node);
|
||||
|
||||
this.appContext.activateNote(notePath);
|
||||
const activeTabContext = this.appContext.getActiveTabContext();
|
||||
await activeTabContext.setNote(notePath);
|
||||
},
|
||||
expand: (event, data) => this.setExpandedToServer(data.node.data.branchId, true),
|
||||
collapse: (event, data) => this.setExpandedToServer(data.node.data.branchId, false),
|
||||
|
||||
Reference in New Issue
Block a user