mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	allow #newNotesOnTop=false to negate previous setting, closes #3796
This commit is contained in:
		| @@ -23,7 +23,7 @@ const ValidationError = require("../errors/validation_error"); | ||||
| const noteTypesService = require("./note_types"); | ||||
|  | ||||
| function getNewNotePosition(parentNote) { | ||||
|     if (parentNote.hasLabel('newNotesOnTop')) { | ||||
|     if (parentNote.isLabelTruthy('newNotesOnTop')) { | ||||
|         const minNotePos = parentNote.getChildBranches() | ||||
|             .reduce((min, note) => Math.min(min, note.notePosition), 0); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user