feat(template): duplicate content for relation map

This commit is contained in:
Elian Doran 2025-03-08 04:26:30 +02:00
parent 5d9bea8987
commit ed06a3ee97
No known key found for this signature in database

View File

@ -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) &&