mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix(in-app-help): navigating to new page breakign scope
This commit is contained in:
		| @@ -368,7 +368,11 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { | ||||
|                 const notePath = treeService.getNotePath(data.node); | ||||
|  | ||||
|                 const activeNoteContext = appContext.tabManager.getActiveContext(); | ||||
|                 await activeNoteContext.setNote(notePath); | ||||
|                 const opts = {}; | ||||
|                 if (activeNoteContext.viewScope.viewMode === "contextual-help") { | ||||
|                     opts.viewScope = activeNoteContext.viewScope; | ||||
|                 } | ||||
|                 await activeNoteContext.setNote(notePath, opts); | ||||
|             }, | ||||
|             expand: (event, data) => this.setExpanded(data.node.data.branchId, true), | ||||
|             collapse: (event, data) => this.setExpanded(data.node.data.branchId, false), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user