mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-25 22:29:25 -05:00
context menu cleanup
This commit is contained in:
@@ -141,7 +141,8 @@ async function getContextMenuItems(event) {
|
||||
}
|
||||
|
||||
function selectContextMenuItem(event, cmd) {
|
||||
const node = $.ui.fancytree.getNode(event);
|
||||
// context menu is always triggered on current node
|
||||
const node = treeService.getCurrentNode();
|
||||
|
||||
if (cmd === "insertNoteHere") {
|
||||
const parentNoteId = node.data.parentNoteId;
|
||||
|
||||
Reference in New Issue
Block a user