fix creation of top level note, closes #501

This commit is contained in:
zadam
2019-04-29 21:18:12 +02:00
parent 29931bbddf
commit 8205cdc288
3 changed files with 2 additions and 27 deletions

View File

@@ -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