mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(server): hidden subtree not initializing due to missing translations
This commit is contained in:
		| @@ -54,7 +54,7 @@ enum Command { | |||||||
|  * duplicate subtrees. This way, all instances will generate the same structure with the same IDs. |  * duplicate subtrees. This way, all instances will generate the same structure with the same IDs. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| let HIDDEN_SUBTREE_DEFINITION = buildHiddenSubtreeDefinition(); | let hiddenSubtreeDefinition: Item; | ||||||
|  |  | ||||||
| function buildHiddenSubtreeDefinition(): Item { | function buildHiddenSubtreeDefinition(): Item { | ||||||
|     return { |     return { | ||||||
| @@ -288,11 +288,11 @@ function checkHiddenSubtree(force = false, extraOpts: CheckHiddenExtraOpts = {}) | |||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     if (force) { |     if (!hiddenSubtreeDefinition || force) { | ||||||
|         HIDDEN_SUBTREE_DEFINITION = buildHiddenSubtreeDefinition(); |         hiddenSubtreeDefinition = buildHiddenSubtreeDefinition(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     checkHiddenSubtreeRecursively('root', HIDDEN_SUBTREE_DEFINITION, extraOpts); |     checkHiddenSubtreeRecursively('root', hiddenSubtreeDefinition, extraOpts); | ||||||
| } | } | ||||||
|  |  | ||||||
| function checkHiddenSubtreeRecursively(parentNoteId: string, item: Item, extraOpts: CheckHiddenExtraOpts = {}) { | function checkHiddenSubtreeRecursively(parentNoteId: string, item: Item, extraOpts: CheckHiddenExtraOpts = {}) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user