Skip to content

Build your personal knowledge base with Trilium Notes

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.ts
index 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
+ });
}
}