mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix moving/cloning notes broken in 0.42.4, closes #1066
This commit is contained in:
		| @@ -746,6 +746,7 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|         node.icon = this.getIcon(note, isFolder); | ||||
|         node.extraClasses = this.getExtraClasses(note); | ||||
|         node.title = (branch.prefix ? (branch.prefix + " - ") : "") + note.title; | ||||
|         node.setExpanded(branch.isExpanded, {noEvents:true}); | ||||
|         node.renderTitle(); | ||||
|     } | ||||
|  | ||||
| @@ -1079,7 +1080,7 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|         const toNode = node.getPrevSibling(); | ||||
|  | ||||
|         if (toNode !== null) { | ||||
|             branchService.moveToParentNote([node.data.branchId], toNode.data.noteId); | ||||
|             branchService.moveToParentNote([node.data.branchId], toNode.data.branchId); | ||||
|         } | ||||
|     } | ||||
|  | ||||
| @@ -1164,7 +1165,7 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|     } | ||||
|  | ||||
|     pasteNotesFromClipboardCommand({node}) { | ||||
|         clipboard.pasteInto(node.data.noteId); | ||||
|         clipboard.pasteInto(node.data.branchId); | ||||
|     } | ||||
|  | ||||
|     pasteNotesAfterFromClipboard({node}) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user