mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
fix creation of top level note, closes #501
This commit is contained in:
@@ -585,7 +585,7 @@ async function createNewTopLevelNote() {
|
||||
await createNote(rootNode, hoistedNoteId, "into");
|
||||
}
|
||||
|
||||
async function createNote(node, parentNoteId, target, extraOptions) {
|
||||
async function createNote(node, parentNoteId, target, extraOptions = {}) {
|
||||
utils.assertArguments(node, parentNoteId, target);
|
||||
|
||||
// if isProtected isn't available (user didn't enter password yet), then note is created as unencrypted
|
||||
|
||||
Reference in New Issue
Block a user