mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	if a note context has sub contexts, then it has to be saved even if empty, fixes #3985
This commit is contained in:
		| @@ -176,9 +176,12 @@ class NoteContext extends Component { | ||||
|     } | ||||
|  | ||||
|     getTabState() { | ||||
|         if (!this.notePath && this.hoistedNoteId === 'root') { | ||||
|         if (this.hoistedNoteId !== 'root') { | ||||
|             // keeping empty hoisted tab is esp. important for mobile (e.g. opened launcher config) | ||||
|             return null; | ||||
|  | ||||
|             if (!this.notePath && this.getSubContexts().length === 0) { | ||||
|                 return null; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         return { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user