Skip to content

Build your personal knowledge base with Trilium Notes

fixed removing from recent notes

azivner719f5530544e
diff --git a/public/javascripts/dialogs/recent_notes.js b/public/javascripts/dialogs/recent_notes.js
index afe85f6429..1c1e8d29e3 100644
--- a/public/javascripts/dialogs/recent_notes.js
+++ b/public/javascripts/dialogs/recent_notes.js
@@ -27,7 +27,7 @@ const recentNotes = (function() {
// FIXME: this should be probably just refresh upon deletion, not explicit delete
async function removeRecentNote(notePathIdToRemove) {
- const result = server.remove('recent-notes/' + encodeURIComponent(notePathIdToRemove));
+ const result = await server.remove('recent-notes/' + encodeURIComponent(notePathIdToRemove));
list = result.map(r => r.note_path);
}