mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix(edit-docs): preserve attachment IDs
This commit is contained in:
		| @@ -62,6 +62,10 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     function getNewAttachmentId(origAttachmentId: string) { |     function getNewAttachmentId(origAttachmentId: string) { | ||||||
|  |         if (opts?.preserveIds) { | ||||||
|  |             return origAttachmentId; | ||||||
|  |         } | ||||||
|  |  | ||||||
|         if (!origAttachmentId.trim()) { |         if (!origAttachmentId.trim()) { | ||||||
|             // this probably shouldn't happen, but still good to have this precaution |             // this probably shouldn't happen, but still good to have this precaution | ||||||
|             return "empty_attachment_id"; |             return "empty_attachment_id"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user