From d86f6556584a7d22c52e0a94c3b5753979a885ca Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 15 Feb 2018 23:04:50 -0500 Subject: [PATCH] attempt to mitigate problem with creating day subnotes --- src/public/javascripts/init.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/public/javascripts/init.js b/src/public/javascripts/init.js index 0eb294fdc..07286ec34 100644 --- a/src/public/javascripts/init.js +++ b/src/public/javascripts/init.js @@ -207,8 +207,10 @@ if (isElectron()) { await noteTree.activateNode(parentNoteId); - const node = noteTree.getCurrentNode(); + setTimeout(() => { + const node = noteTree.getCurrentNode(); - await noteTree.createNote(node, node.data.noteId, 'into', node.data.isProtected); + noteTree.createNote(node, node.data.noteId, 'into', node.data.isProtected); + }, 500); }); } \ No newline at end of file