mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +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.isDeleted = attribute.isDeleted; | ||||
| 
 | ||||
|         if (attributeEntity.type === 'relation' && !attributeEntity.value.trim()) { | ||||
|         if (attributeEntity.type === 'relation' && !attribute.value.trim()) { | ||||
|             // relation should never have empty target
 | ||||
|             attributeEntity.isDeleted = true; | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner