mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	reloading note tree when we have note detail changes
This commit is contained in:
		
							parent
							
								
									b5baab056c
								
							
						
					
					
						commit
						c022fcf196
					
				@ -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();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user