mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	imported notes can reference root
This commit is contained in:
		
							parent
							
								
									3db2f6784d
								
							
						
					
					
						commit
						7691a59977
					
				@ -31,6 +31,11 @@ async function importTar(fileBuffer, parentNote) {
 | 
				
			|||||||
            return "";
 | 
					            return "";
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // we allow references to root and they don't need translation
 | 
				
			||||||
 | 
					        if (origNoteId === 'root') {
 | 
				
			||||||
 | 
					            return origNoteId;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!ctx.noteIdMap[origNoteId]) {
 | 
					        if (!ctx.noteIdMap[origNoteId]) {
 | 
				
			||||||
            ctx.noteIdMap[origNoteId] = utils.newEntityId();
 | 
					            ctx.noteIdMap[origNoteId] = utils.newEntityId();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user