Skip to content

Build your personal knowledge base with Trilium Notes

Merge branch 'master' into next60

zadam15a11daf381b
diff --cc src/services/notes.js
index 84c497af93,d526372d27..37838c6a85
--- a/src/services/notes.js
+++ b/src/services/notes.js
@@@ -21,10 -21,9 +21,10 @@@ const dayjs = require("dayjs")
const htmlSanitizer = require("./html_sanitizer");
const ValidationError = require("../errors/validation_error");
const noteTypesService = require("./note_types");
+const {attach} = require("jsdom/lib/jsdom/living/helpers/svg/basic-types.js");
function getNewNotePosition(parentNote) {
- if (parentNote.hasLabel('newNotesOnTop')) {
+ if (parentNote.isLabelTruthy('newNotesOnTop')) {
const minNotePos = parentNote.getChildBranches()
.reduce((min, note) => Math.min(min, note.notePosition), 0);