mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
added foreign keys to relations to guarantee data consistency
This commit is contained in:
@@ -88,7 +88,7 @@ const contextMenu = (function() {
|
||||
const node = $.ui.fancytree.getNode(ui.target);
|
||||
|
||||
if (ui.cmd === "insertNoteHere") {
|
||||
const parentNoteId = node.data.note_pid;
|
||||
const parentNoteId = node.data.parent_note_id;
|
||||
const isProtected = treeUtils.getParentProtectedStatus(node);
|
||||
|
||||
noteTree.createNote(node, parentNoteId, 'after', isProtected);
|
||||
|
||||
Reference in New Issue
Block a user