mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
fixed triggers to sort children of notes with "sorted" label, closes #1126
This commit is contained in:
@@ -164,10 +164,16 @@ async function changeTitle(req) {
|
||||
return [400, `Note ${noteId} is not available for change`];
|
||||
}
|
||||
|
||||
const noteTitleChanged = note.title !== title;
|
||||
|
||||
note.title = title;
|
||||
|
||||
await note.save();
|
||||
|
||||
if (noteTitleChanged) {
|
||||
await noteService.triggerNoteTitleChanged(note);
|
||||
}
|
||||
|
||||
return note;
|
||||
}
|
||||
|
||||
@@ -189,4 +195,4 @@ module.exports = {
|
||||
getRelationMap,
|
||||
changeTitle,
|
||||
duplicateNote
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user