mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix double import of auto generated link relations
This commit is contained in:
		
							parent
							
								
									8d14a0d687
								
							
						
					
					
						commit
						144e75da9e
					
				@ -150,6 +150,11 @@ async function importTar(importContext, fileBuffer, importRootNote) {
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (attr.type === 'relation' && ['internal-link', 'image-link', 'relation-map-link'].includes(attr.name)) {
 | 
			
		||||
                // these relations are created automatically and as such don't need to be duplicated in the import
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (attr.type === 'relation') {
 | 
			
		||||
                attr.value = getNewNoteId(attr.value);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user