From 5d9bea898758e98ae5ee4945c99569ca81055a94 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 8 Mar 2025 04:24:09 +0200 Subject: [PATCH] feat(template): duplicate content for canvas --- src/services/handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) &&