mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	feat(template): duplicate content for relation map
This commit is contained in:
		
							parent
							
								
									5d9bea8987
								
							
						
					
					
						commit
						ed06a3ee97
					
				@ -102,7 +102,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
 | 
			
		||||
            const content = note.getContent();
 | 
			
		||||
 | 
			
		||||
            if (
 | 
			
		||||
                ["text", "code", "mermaid", "canvas"].includes(note.type) &&
 | 
			
		||||
                ["text", "code", "mermaid", "canvas", "relationMap"].includes(note.type) &&
 | 
			
		||||
                typeof content === "string" &&
 | 
			
		||||
                // if the note has already content we're not going to overwrite it with template's one
 | 
			
		||||
                (!content || content.trim().length === 0) &&
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user