mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	image notes can't be updated + minor visual tweaks
This commit is contained in:
		| @@ -275,8 +275,8 @@ async function updateNote(noteId, noteUpdates) { | ||||
|         throw new Error(`Note ${noteId} is not available for change!`); | ||||
|     } | ||||
|  | ||||
|     if (note.type === 'file') { | ||||
|         // for update file, newNote doesn't contain file payloads | ||||
|     if (note.type === 'file' || note.type === 'image') { | ||||
|         // files and images are immutable, they can't be updated | ||||
|         noteUpdates.content = note.content; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user