mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	allow duplicating multiple notes at once, closes #1259
This commit is contained in:
		| @@ -727,7 +727,7 @@ function duplicateNote(noteId, parentNoteId) { | ||||
|     } | ||||
|  | ||||
|     // might be null if orig note is not in the target parentNoteId | ||||
|     const origBranch = (origNote.getBranches()).find(branch => branch.parentNoteId === parentNoteId); | ||||
|     const origBranch = origNote.getBranches().find(branch => branch.parentNoteId === parentNoteId); | ||||
|  | ||||
|     const newNote = new Note(origNote); | ||||
|     newNote.noteId = undefined; // force creation of new note | ||||
|   | ||||
		Reference in New Issue
	
	Block a user