mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	create note directly from mention linking
This commit is contained in:
		| @@ -61,7 +61,13 @@ async function createNote(parentNoteId, options = {}) { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     return {note, branch}; | ||||
|     const noteEntity = await treeCache.getNote(note.noteId); | ||||
|     const branchEntity = treeCache.getBranchId(branch.branchId); | ||||
|  | ||||
|     return { | ||||
|         note: noteEntity, | ||||
|         branch: branchEntity | ||||
|     }; | ||||
| } | ||||
|  | ||||
| /* If first element is heading, parse it out and use it as a new heading. */ | ||||
| @@ -95,4 +101,4 @@ export default { | ||||
|     createNote, | ||||
|     createNewTopLevelNote, | ||||
|     duplicateNote | ||||
| }; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user