add #shareRoot label to define an "index" note, closes #2567

This commit is contained in:
zadam
2022-01-17 23:13:56 +01:00
parent 1aff3db81f
commit 52b118df7f
12 changed files with 115 additions and 84 deletions

View File

@@ -40,7 +40,7 @@ async function createNote(parentNotePath, options = {}) {
C-->D;`
}
const {note, branch} = await server.post(`notes/${parentNoteId}/children?target=${options.target}&targetBranchId=${options.targetBranchId}`, {
const {note, branch} = await server.post(`notes/${parentNoteId}/children?target=${options.target}&targetBranchId=${options.targetBranchId || ""}`, {
title: newNoteName,
content: options.content || "",
isProtected: options.isProtected,