Skip to content

Build your personal knowledge base with Trilium Notes

feat(template): duplicate content for relation map

Elian Doraned06a3ee974d
diff --git a/src/services/handlers.ts b/src/services/handlers.ts
index a5580c5b1d..19d77fe9ce 100644
--- a/src/services/handlers.ts
+++ b/src/services/handlers.ts
@@ -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) &&