mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	fix relation saving
This commit is contained in:
		
							parent
							
								
									8e16cc2326
								
							
						
					
					
						commit
						4f23f2515a
					
				| @ -95,7 +95,7 @@ async function updateNoteAttributes(req) { | |||||||
|         attributeEntity.isInheritable = attribute.isInheritable; |         attributeEntity.isInheritable = attribute.isInheritable; | ||||||
|         attributeEntity.isDeleted = attribute.isDeleted; |         attributeEntity.isDeleted = attribute.isDeleted; | ||||||
| 
 | 
 | ||||||
|         if (attributeEntity.type === 'relation' && !attributeEntity.value.trim()) { |         if (attributeEntity.type === 'relation' && !attribute.value.trim()) { | ||||||
|             // relation should never have empty target
 |             // relation should never have empty target
 | ||||||
|             attributeEntity.isDeleted = true; |             attributeEntity.isDeleted = true; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner