mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	some debug logging for duplicated nodes
This commit is contained in:
		
							parent
							
								
									d18a20cc06
								
							
						
					
					
						commit
						afe24866f0
					
				@ -635,6 +635,8 @@ async function createNote(node, parentNoteId, target, extraOptions = {}) {
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    if (target === 'after') {
 | 
			
		||||
        console.log(`Appending node...`); // to debug duplicated nodes
 | 
			
		||||
 | 
			
		||||
        await node.appendSibling(newNode).setActive(true);
 | 
			
		||||
    }
 | 
			
		||||
    else if (target === 'into') {
 | 
			
		||||
@ -642,6 +644,8 @@ async function createNote(node, parentNoteId, target, extraOptions = {}) {
 | 
			
		||||
            await node.setExpanded();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        console.log(`Adding node as child...`); // to debug duplicated nodes
 | 
			
		||||
 | 
			
		||||
        node.addChildren(newNode);
 | 
			
		||||
 | 
			
		||||
        await node.getLastChild().setActive(true);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user