Skip to content

Build your personal knowledge base with Trilium Notes

reloading note tree when we have note detail changes

azivnerc022fcf196e2
diff --git a/public/javascripts/messaging.js b/public/javascripts/messaging.js
index c393a45df7..10709c53e9 100644
--- a/public/javascripts/messaging.js
+++ b/public/javascripts/messaging.js
@@ -29,7 +29,9 @@ const messaging = (function() {
const syncData = message.data.filter(sync => sync.source_id !== glob.sourceId);
- if (syncData.some(sync => sync.entity_name === 'notes_tree')) {
+ if (syncData.some(sync => sync.entity_name === 'notes_tree')
+ || syncData.some(sync => sync.entity_name === 'notes')) {
+
console.log(now(), "Reloading tree because of background changes");
noteTree.reload();