mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	detect existing attachment in target note
This commit is contained in:
		| @@ -27,7 +27,7 @@ async function createNote(parentNotePath, options = {}) { | ||||
|         [options.title, options.content] = parseSelectedHtml(options.textEditor.getSelectedHtml()); | ||||
|     } | ||||
|  | ||||
|     const parentNoteId = treeService.getNoteIdFromNotePath(parentNotePath); | ||||
|     const parentNoteId = treeService.getNoteIdFromUrl(parentNotePath); | ||||
|  | ||||
|     if (options.type === 'mermaid' && !options.content) { | ||||
|         options.content = `graph TD; | ||||
| @@ -110,7 +110,7 @@ function parseSelectedHtml(selectedHtml) { | ||||
| } | ||||
|  | ||||
| async function duplicateSubtree(noteId, parentNotePath) { | ||||
|     const parentNoteId = treeService.getNoteIdFromNotePath(parentNotePath); | ||||
|     const parentNoteId = treeService.getNoteIdFromUrl(parentNotePath); | ||||
|     const {note} = await server.post(`notes/${noteId}/duplicate/${parentNoteId}`); | ||||
|  | ||||
|     await ws.waitForMaxKnownEntityChangeId(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user