Skip to content

Build your personal knowledge base with Trilium Notes

attempt to mitigate problem with creating day subnotes

azivnerd86f6556584a
diff --git a/src/public/javascripts/init.js b/src/public/javascripts/init.js
index 0eb294fdcd..07286ec341 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