mirror of
https://github.com/zadam/trilium.git
synced 2026-03-22 08:13:46 +01:00
chore(mermaid): remove default placeholder content
This commit is contained in:
parent
92f8459f28
commit
0209573fce
@ -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 || "",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user