mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	cloning in context menu (copy & paste) and a lot of related refactoring and fixes
This commit is contained in:
		| @@ -18,7 +18,7 @@ async function createNewNote(parentNoteId, note, browserId) { | ||||
|         newNotePos = maxNotePos === null ? 0 : maxNotePos + 1; | ||||
|     } | ||||
|     else if (note.target === 'after') { | ||||
|         const afterNote = await sql.getSingleResult('SELECT note_pos FROM notes_tree WHERE note_id = ?', [note.target_note_id]); | ||||
|         const afterNote = await sql.getSingleResult('SELECT note_pos FROM notes_tree WHERE note_tree_id = ?', [note.target_note_tree_id]); | ||||
|  | ||||
|         newNotePos = afterNote.note_pos + 1; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user