diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js index 7be6bff10..3bc692afc 100644 --- a/src/public/javascripts/services/tree.js +++ b/src/public/javascripts/services/tree.js @@ -635,6 +635,8 @@ async function createNote(node, parentNoteId, target, extraOptions = {}) { }; if (target === 'after') { + console.log(`Appending node...`); // to debug duplicated nodes + await node.appendSibling(newNode).setActive(true); } else if (target === 'into') { @@ -642,6 +644,8 @@ async function createNote(node, parentNoteId, target, extraOptions = {}) { await node.setExpanded(); } + console.log(`Adding node as child...`); // to debug duplicated nodes + node.addChildren(newNode); await node.getLastChild().setActive(true);