mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix "reviving" deleted attributes, closes #1404
This commit is contained in:
		
							parent
							
								
									402e5c4d81
								
							
						
					
					
						commit
						a3a2bc0a74
					
				
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "trilium",
 | 
					  "name": "trilium",
 | 
				
			||||||
  "version": "0.45.2",
 | 
					  "version": "0.45.3",
 | 
				
			||||||
  "lockfileVersion": 1,
 | 
					  "lockfileVersion": 1,
 | 
				
			||||||
  "requires": true,
 | 
					  "requires": true,
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
 | 
				
			|||||||
@ -52,8 +52,9 @@ function updateNoteAttribute(req) {
 | 
				
			|||||||
        attribute.type = body.type;
 | 
					        attribute.type = body.type;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (body.value.trim()) {
 | 
					    if (body.type !== 'relation' || body.value.trim()) {
 | 
				
			||||||
        attribute.value = body.value;
 | 
					        attribute.value = body.value;
 | 
				
			||||||
 | 
					        attribute.isDeleted = false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else {
 | 
					    else {
 | 
				
			||||||
        // relations should never have empty target
 | 
					        // relations should never have empty target
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user