fix(command_palette): sort child notes not working

This commit is contained in:
Elian Doran 2025-07-30 19:47:01 +03:00
parent 7e01dfd220
commit f6e275709f
No known key found for this signature in database

View File

@ -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
});
}
}