From 719f5530544efa1d7aae16afd8a9e64db04ff206 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 30 Nov 2017 00:08:59 -0500 Subject: [PATCH] fixed removing from recent notes --- public/javascripts/dialogs/recent_notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/dialogs/recent_notes.js b/public/javascripts/dialogs/recent_notes.js index afe85f642..1c1e8d29e 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); }