mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix reopening the very last tab, closes #3397
This commit is contained in:
		| @@ -32,6 +32,10 @@ class NoteContext extends Component { | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|     isEmpty() { | ||||
|         return !this.noteId; | ||||
|     } | ||||
|  | ||||
|     async setNote(inputNotePath, triggerSwitchEvent = true) { | ||||
|         const resolvedNotePath = await this.getResolvedNotePath(inputNotePath); | ||||
|  | ||||
| @@ -59,8 +63,6 @@ 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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user