Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(template): duplicate content for geomap & mindmap (closes #357)
Elian Doran268b666d523e
diff --git a/src/services/handlers.ts b/src/services/handlers.tsindex 19d77fe9ce..9d64b83039 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", "relationMap"].includes(note.type) &&+ ["text", "code", "mermaid", "canvas", "relationMap", "mindMap", "geoMap"].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) &&