mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix broken template copy, closes #1724
This commit is contained in:
		| @@ -61,7 +61,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) => | ||||
|  | ||||
|             const content = note.getContent(); | ||||
|  | ||||
|             if (!["text", "code"].includes(note.type) | ||||
|             if (["text", "code"].includes(note.type) | ||||
|                 // if the note has already content we're not going to overwrite it with template's one | ||||
|                 && (!content || content.trim().length === 0) | ||||
|                 && templateNote.isStringNote()) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user