mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix not being able to rename a note when in auto-book mode, closes #694
This commit is contained in:
		@@ -270,7 +270,10 @@ class NoteDetailBook {
 | 
				
			|||||||
        return type;
 | 
					        return type;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    getContent() {}
 | 
					    getContent() {
 | 
				
			||||||
 | 
					        // for auto-book cases when renaming title there should be content
 | 
				
			||||||
 | 
					        return "";
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    show() {
 | 
					    show() {
 | 
				
			||||||
        this.$component.show();
 | 
					        this.$component.show();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -370,6 +370,7 @@ async function updateNote(noteId, noteUpdates) {
 | 
				
			|||||||
    note.isProtected = noteUpdates.isProtected;
 | 
					    note.isProtected = noteUpdates.isProtected;
 | 
				
			||||||
    await note.save();
 | 
					    await note.save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // this might be simplified to just !== undefined
 | 
				
			||||||
    if (!['file', 'image', 'render'].includes(note.type)) {
 | 
					    if (!['file', 'image', 'render'].includes(note.type)) {
 | 
				
			||||||
        noteUpdates.content = await saveLinks(note, noteUpdates.content);
 | 
					        noteUpdates.content = await saveLinks(note, noteUpdates.content);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user