diff --git a/src/services/handlers.ts b/src/services/handlers.ts index 5c65c8a49..a5580c5b1 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"].includes(note.type) && + ["text", "code", "mermaid", "canvas"].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) &&