diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js index 15589a78e..df9df1672 100644 --- a/src/public/javascripts/services/tree.js +++ b/src/public/javascripts/services/tree.js @@ -623,7 +623,10 @@ async function createNote(node, parentNoteId, target, isProtected, saveSelection await node.getLastChild().setActive(true); + const parentNoteEntity = await treeCache.getNote(node.data.noteId); + node.folder = true; + node.icon = await treeBuilder.getIcon(parentNoteEntity); // icon might change into folder node.renderTitle(); } else {