mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	global note map should not rehoist
This commit is contained in:
		| @@ -61,8 +61,11 @@ class NoteContext extends Component { | ||||
|  | ||||
|         console.log(resolvedNotePath, "resolvedNotePath"); | ||||
|  | ||||
|         if (this.hoistedNoteId === 'root' && this.notePath.startsWith("root/hidden")) { | ||||
|             // hidden subtree displays only when hoisted so it doesn't make sense to keep root as hoisted note | ||||
|         if (this.hoistedNoteId === 'root' | ||||
|             && this.notePath.startsWith("root/hidden") | ||||
|             && !this.note.hasLabel("keepCurrentHoisting") | ||||
|         ) { | ||||
|             // hidden subtree displays only when hoisted, so it doesn't make sense to keep root as hoisted note | ||||
|  | ||||
|             let hoistedNoteId = 'hidden'; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user