Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix for moving note inside not-yet folder
azivnerae6e222c506c
diff --git a/public/javascripts/tree_changes.js b/public/javascripts/tree_changes.jsindex d7f5af8115..0378ece5ac 100644--- a/public/javascripts/tree_changes.js+++ b/public/javascripts/tree_changes.js@@ -51,12 +51,16 @@ const treeChanges = (function() {changeNode(nodeToMove, node => {// first expand which will force lazy load and only then move the node// if this is not expanded before moving, then lazy load won't happen because it already contains node+ // this doesn't work if this isn't a folder yet, that's why we expand second time belowtoNode.setExpanded(true);node.moveTo(toNode);toNode.folder = true;toNode.renderTitle();++ // this expands the note in case it become the folder only after the move+ toNode.setExpanded(true);});}}