chore(mermaid): remove default placeholder content

This commit is contained in:
Elian Doran 2026-03-14 10:03:15 +02:00
parent 92f8459f28
commit 0209573fce
No known key found for this signature in database

View File

@ -67,14 +67,6 @@ async function createNote(parentNotePath: string | undefined, options: CreateNot
const parentNoteId = treeService.getNoteIdFromUrl(parentNotePath);
if (options.type === "mermaid" && !options.content && !options.templateNoteId) {
options.content = `graph TD;
A-->B;
A-->C;
B-->D;
C-->D;`;
}
const { note, branch } = await server.post<Response>(`notes/${parentNoteId}/children?target=${options.target}&targetBranchId=${options.targetBranchId || ""}`, {
title: options.title,
content: options.content || "",