Skip to content

Build your personal knowledge base with Trilium Notes

fix(spreadsheet): cannot be used as a template

Elian Doranc3a5bedfaf3f
diff --git a/apps/server/src/services/handlers.ts b/apps/server/src/services/handlers.ts
index cf96b0a6d1..64e143bd9f 100644
--- a/apps/server/src/services/handlers.ts
+++ b/apps/server/src/services/handlers.ts
@@ -105,7 +105,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
const content = note.getContent();
if (
- ["text", "code", "mermaid", "canvas", "relationMap", "mindMap", "webView"].includes(note.type) &&
+ ["text", "code", "mermaid", "canvas", "relationMap", "mindMap", "webView", "spreadsheet"].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) &&