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
fix broken template copy, closes #1724
zadama654078e564d
diff --git a/src/services/handlers.js b/src/services/handlers.jsindex a2e01ca810..e0effba433 100644--- a/src/services/handlers.js+++ b/src/services/handlers.js@@ -61,7 +61,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>const content = note.getContent();- if (!["text", "code"].includes(note.type)+ if (["text", "code"].includes(note.type)// if the note has already content we're not going to overwrite it with template's one&& (!content || content.trim().length === 0)&& templateNote.isStringNote()) {