reloading note tree when we have note detail changes

This commit is contained in:
azivner 2018-01-06 22:56:54 -05:00
parent b5baab056c
commit c022fcf196

View File

@ -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();