mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
initial decallbackization and promisification of frontend
This commit is contained in:
@@ -97,7 +97,7 @@ function initFancyTree(notes, startNoteId) {
|
||||
activate: (event, data) => {
|
||||
const node = data.node.data;
|
||||
|
||||
saveNoteIfChanged(() => loadNoteToEditor(node.note_id));
|
||||
saveNoteIfChanged().then(() => loadNoteToEditor(node.note_id));
|
||||
},
|
||||
expand: (event, data) => {
|
||||
setExpandedToServer(data.node.key, true);
|
||||
|
||||
Reference in New Issue
Block a user