From c022fcf196e27e14c4633a63f68e42e2d7d0135a Mon Sep 17 00:00:00 2001 From: azivner Date: Sat, 6 Jan 2018 22:56:54 -0500 Subject: [PATCH] reloading note tree when we have note detail changes --- public/javascripts/messaging.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/javascripts/messaging.js b/public/javascripts/messaging.js index c393a45df..10709c53e 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();