mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-29 11:44:21 +08:00 
			
		
		
		
	don't try to fill additional properties for erased entities
This commit is contained in:
		
							parent
							
								
									61e78858bc
								
							
						
					
					
						commit
						5011b6a51a
					
				| @ -75,6 +75,10 @@ function sendMessageToAllClients(message) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function fillInAdditionalProperties(entityChange) { | function fillInAdditionalProperties(entityChange) { | ||||||
|  |     if (entityChange.isErased) { | ||||||
|  |         return; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     // fill in some extra data needed by the frontend
 |     // fill in some extra data needed by the frontend
 | ||||||
|     if (entityChange.entityName === 'attributes') { |     if (entityChange.entityName === 'attributes') { | ||||||
|         entityChange.entity = sql.getRow(`SELECT * FROM attributes WHERE attributeId = ?`, [entityChange.entityId]); |         entityChange.entity = sql.getRow(`SELECT * FROM attributes WHERE attributeId = ?`, [entityChange.entityId]); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam