Skip to content

Build your personal knowledge base with Trilium Notes

text note should change its icon after having new note inserted into, fixes #361

azivner2ac560c56e2d
diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js
index 15589a78e6..df9df1672d 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 {