mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix creating virtual "none" note in becca, closes #3066
This commit is contained in:
		
							parent
							
								
									28f620d51d
								
							
						
					
					
						commit
						78bca2477d
					
				@ -107,7 +107,7 @@ class Branch extends AbstractEntity {
 | 
			
		||||
 | 
			
		||||
    /** @returns {Note} */
 | 
			
		||||
    get parentNote() {
 | 
			
		||||
        if (!(this.parentNoteId in this.becca.notes)) {
 | 
			
		||||
        if (!(this.parentNoteId in this.becca.notes) && this.parentNoteId !== 'none') {
 | 
			
		||||
            // entities can come out of order in sync/import, create skeleton which will be filled later
 | 
			
		||||
            this.becca.addNote(this.parentNoteId, new Note({noteId: this.parentNoteId}));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user