mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
fixes in the handling of cssClass and iconClass when working with newly created / single note
This commit is contained in:
@@ -22,7 +22,7 @@ async function getNote(req) {
|
||||
}
|
||||
}
|
||||
|
||||
note.cssClass = (await note.getLabels("cssClass")).map(label => label.value).join(" ");
|
||||
await treeService.setCssClassesToNotes([note]);
|
||||
|
||||
return note;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ async function createNote(req) {
|
||||
|
||||
const { note, branch } = await noteService.createNewNote(parentNoteId, newNote, req);
|
||||
|
||||
note.cssClass = (await note.getLabels("cssClass")).map(label => label.value).join(" ");
|
||||
await treeService.setCssClassesToNotes([note]);
|
||||
|
||||
return {
|
||||
note,
|
||||
|
||||
Reference in New Issue
Block a user