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(command_palette): sort child notes not working
Elian Doranf6e275709f94
diff --git a/apps/client/src/services/command_registry.ts b/apps/client/src/services/command_registry.tsindex a6c1000b70..8f045d57d0 100644--- a/apps/client/src/services/command_registry.ts+++ b/apps/client/src/services/command_registry.ts@@ -260,7 +260,11 @@ class CommandRegistry {}const treeComponent = appContext.getComponentByEl(tree) as NoteTreeWidget;- treeComponent.triggerCommand(actionName, { ntxId: appContext.tabManager.activeNtxId });+ const activeNode = treeComponent.getActiveNode();+ treeComponent.triggerCommand(actionName, {+ ntxId: appContext.tabManager.activeNtxId,+ node: activeNode+ });}}