From ed06a3ee974dc1a491c30bcd698fe40239926a8a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 8 Mar 2025 04:26:30 +0200 Subject: [PATCH] feat(template): duplicate content for relation map --- src/services/handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/handlers.ts b/src/services/handlers.ts index a5580c5b1..19d77fe9c 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) &&