mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +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();
 | 
					            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
 | 
					                // if the note has already content we're not going to overwrite it with template's one
 | 
				
			||||||
                && (!content || content.trim().length === 0)
 | 
					                && (!content || content.trim().length === 0)
 | 
				
			||||||
                && templateNote.isStringNote()) {
 | 
					                && templateNote.isStringNote()) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user