mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix a bug where render note content could be set to null during renaming
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| echo "Deleting existing builds" | ||||
|  | ||||
| rm -r dist/* | ||||
| rm -rf dist/* | ||||
|  | ||||
| SRC_DIR=dist/trilium-src | ||||
|  | ||||
|   | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -82,8 +82,6 @@ async function handleMessage(event) { | ||||
| let syncIdReachedListeners = []; | ||||
|  | ||||
| function waitForSyncId(desiredSyncId) { | ||||
|     console.log("Waiting for ", desiredSyncId); | ||||
|  | ||||
|     if (desiredSyncId <= lastSyncId) { | ||||
|         return Promise.resolve(); | ||||
|     } | ||||
|   | ||||
| @@ -370,7 +370,7 @@ async function updateNote(noteId, noteUpdates) { | ||||
|     note.isProtected = noteUpdates.isProtected; | ||||
|     await note.save(); | ||||
|  | ||||
|     if (!['file', 'image'].includes(note.type)) { | ||||
|     if (!['file', 'image', 'render'].includes(note.type)) { | ||||
|         noteUpdates.content = await saveLinks(note, noteUpdates.content); | ||||
|  | ||||
|         await note.setContent(noteUpdates.content); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user